summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-10-16 08:52:08 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-10-16 08:52:08 +0000
commitb72b3ab689c2b9272430c6d2be4bea3d64a918e9 (patch)
treedba3287e6e3e5f14c51958ba2aebed79998e9880 /send.c
parent87b9353b6579b048f27fd7b14cf38ff2f287e0ee (diff)
Fix Debian bug #47408: When the postponed folder is a maildir,
messages should only be written to the _new_ subdirectory.
Diffstat (limited to 'send.c')
-rw-r--r--send.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/send.c b/send.c
index b013e792..ed97deb7 100644
--- a/send.c
+++ b/send.c
@@ -1192,6 +1192,13 @@ main_loop:
/* postpone the message until later. */
if (msg->content->next)
msg->content = mutt_make_multipart (msg->content);
+
+ /*
+ * make sure the message is written to the right part of a maildir
+ * postponed folder.
+ */
+ msg->read = 0; msg->old = 0;
+
if (!Postponed || mutt_write_fcc (NONULL (Postponed), msg, (cur && (flags & SENDREPLY)) ? cur->env->message_id : NULL, 1, fcc) < 0)
{
msg->content = mutt_remove_multipart (msg->content);