]> granicus.if.org Git - neomutt/commitdiff
Fix #1321.
authorMichael Elkins <me@sigpipe.org>
Mon, 9 Sep 2002 21:19:08 +0000 (21:19 +0000)
committerMichael Elkins <me@sigpipe.org>
Mon, 9 Sep 2002 21:19:08 +0000 (21:19 +0000)
mh.c

diff --git a/mh.c b/mh.c
index 82dfaae0f9b0999d02ce47ae5f13a46d5daf7306..dab356f021573d33f2238eb520d6fcba6ddcd173 100644 (file)
--- 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",