+2005-02-27 03:18:23 Brendan Cully <brendan@kublai.com> (brendan)
+
+ * imap/message.c: Turn brain back on before committing patches
+ (that modification I made to APPEND was bogus).
+
+2005-02-27 02:44:45 Dan Hopper <ku4nf@austin.rr.com> (brendan)
+
+ * imap/message.c: Don't lose N flag when uploading a message to an
+ IMAP mailbox. (Slightly modified from the original patch to
+ prevent spurious space characters).
+
2005-02-21 04:42:34 Alain Bench <messtic@oreka.com> (roessler)
* parse.c, pgp.c, sendlib.c: Bcc should be RFC2047-encoded, too.
rewind (fp);
imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);
- snprintf (buf, sizeof (buf), "APPEND %s (\\Seen%s%s) {%lu}", mbox,
- msg->flags.replied ? " \\Answered" : "",
- msg->flags.flagged ? " \\Flagged" : "",
+ snprintf (buf, sizeof (buf), "APPEND %s (%s%s%s%s%s) {%lu}", mbox,
+ msg->flags.read ? "\\Seen" : "",
+ msg->flags.read && (msg->flags.replied || msg->flags.flagged) ? " " : "",
+ msg->flags.replied ? "\\Answered" : "",
+ msg->flags.replied && msg->flags.flagged ? " " : "",
+ msg->flags.flagged ? "\\Flagged" : "",
(unsigned long) len);
imap_cmd_start (idata, buf);