]> granicus.if.org Git - neomutt/commit
Send the IMAP \Draft flag when postponing a message.
authorKevin McCarthy <kevin@8t8.us>
Thu, 15 Jan 2015 22:18:53 +0000 (14:18 -0800)
committerKevin McCarthy <kevin@8t8.us>
Thu, 15 Jan 2015 22:18:53 +0000 (14:18 -0800)
commit10975dfebcaa8f877d58288011b24ba98e8a606b
tree26b42a3c9edd0cea753029406de83fd0969035ff
parentee691727f70d7dd64289a68d76a8526b9cb6f23e
Send the IMAP \Draft flag when postponing a message.

This patch adds a mx_open_new_message() flag, M_SET_DRAFT.  It also adds
a MESSAGE->flags.draft flag.

mutt_write_fcc() passes the M_SET_DRAFT flag to mx_open_new_message(),
which then sets MESSAGE->flags.draft.  Then, imap_append_message() is
able to see this flag and so adds the \Draft flag.

The imap_append_message() function started to have a bit too many flags,
so this version of the patch separates out the flag generating code into
a simpler version.
imap/message.c
mailbox.h
mx.c
sendlib.c