From 845a167b23c3b47fbbb3e1459602084ab0589165 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Mon, 9 Sep 2002 21:19:08 +0000 Subject: [PATCH] Fix #1321. --- mh.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mh.c b/mh.c index 82dfaae0..dab356f0 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", -- 2.40.0