]> granicus.if.org Git - neomutt/commitdiff
Turn brain back on before committing patches (that modification I made to
authorBrendan Cully <brendan@kublai.com>
Sun, 27 Feb 2005 03:18:23 +0000 (03:18 +0000)
committerBrendan Cully <brendan@kublai.com>
Sun, 27 Feb 2005 03:18:23 +0000 (03:18 +0000)
APPEND was bogus).

imap/message.c

index f20e16caedeaf77f3462e627bbeb9810d85a8fb9..acab54596f0933900178e0ddaababb733000388e 100644 (file)
@@ -558,9 +558,9 @@ int imap_append_message (CONTEXT *ctx, MESSAGE *msg)
   imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);
   snprintf (buf, sizeof (buf), "APPEND %s (%s%s%s%s%s) {%lu}", mbox,
            msg->flags.read    ? "\\Seen"      : "",
-           msg->flags.read    ? " " : "",
+           msg->flags.read && (msg->flags.replied || msg->flags.flagged) ? " " : "",
            msg->flags.replied ? "\\Answered" : "",
-           msg->flags.replied ? " " : "",
+           msg->flags.replied && msg->flags.flagged ? " " : "",
            msg->flags.flagged ? "\\Flagged"  : "",
            (unsigned long) len);