]> granicus.if.org Git - neomutt/commitdiff
Fix #560.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 23:37:06 +0000 (23:37 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 23:37:06 +0000 (23:37 +0000)
mh.c

diff --git a/mh.c b/mh.c
index df17522e0819cec035adbf34c983a2650a442971..b65aa831156ed09792086835c4bc474da5a7eb57 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -792,8 +792,14 @@ int maildir_open_new_message (MESSAGE *msg, CONTEXT *dest, HEADER *hdr)
   char suffix[16];
   char subdir[16];
 
+  short deleted = hdr->deleted;
+  hdr->deleted = 0;
+
   maildir_flags (suffix, sizeof (suffix), hdr);
-                
+
+  hdr->deleted = deleted;
+
+  
   if (hdr && (hdr->read || hdr->old))
     strfcpy (subdir, "cur", sizeof (subdir));
   else