From: Brendan Cully Date: Sun, 27 Feb 2005 03:18:23 +0000 (+0000) Subject: Turn brain back on before committing patches (that modification I made to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99bcf0f642ac6ba5eb57daea2324c6f601b82f12;p=neomutt Turn brain back on before committing patches (that modification I made to APPEND was bogus). --- diff --git a/imap/message.c b/imap/message.c index f20e16cae..acab54596 100644 --- a/imap/message.c +++ b/imap/message.c @@ -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);