From: Michael Elkins Date: Mon, 9 Sep 2002 21:19:08 +0000 (+0000) Subject: Fix #1321. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70541472eb6d7f233a6a70b36595f3651ad83d4f;p=neomutt Fix #1321. --- diff --git a/mh.c b/mh.c index 82dfaae0f..dab356f02 100644 --- a/mh.c +++ b/mh.c @@ -854,7 +854,15 @@ static void maildir_flags (char *dest, size_t destlen, HEADER * hdr) { *dest = '\0'; - if (hdr && (hdr->flagged || hdr->replied || hdr->read || hdr->deleted)) + /* + * The maildir specification requires that all files in the cur + * subdirectory have the :unique string appeneded, regardless of whether + * or not there are any flags. If .old is set, we know that this message + * will end up in the cur directory, so we include it in the following + * test even though there is no associated flag. + */ + + if (hdr && (hdr->flagged || hdr->replied || hdr->read || hdr->deleted || hdr->old)) { snprintf (dest, destlen, ":2,%s%s%s%s",