]> granicus.if.org Git - neomutt/commit
Change imap copy/save and trash to sync flags, excluding deleted. (closes #3966)...
authorKevin McCarthy <kevin@8t8.us>
Wed, 13 Sep 2017 22:48:16 +0000 (15:48 -0700)
committerRichard Russon <rich@flatcap.org>
Wed, 13 Sep 2017 23:54:42 +0000 (00:54 +0100)
commitf6c654ef9afadb9a649c865861603469a933df6f
tree945c2b91bf61c227b725a5e11f1cd0c1111c8da4
parent91f87be5a9c7f7d830f98a123ed352be04781519
Change imap copy/save and trash to sync flags, excluding deleted. (closes #3966) (closes #3860)

imap_copy_messages() uses a helper to sync the flags before performing
a server-side copy.  However, it had a bug that the "deleted" flag on
a local message, if set, will be propagated to the copy too.

Change the copy sync helper to ignore the deleted flag.  Then, change
the imap trash function to use the same helper.

Thanks to Anton Lindqvist for his excellent bug report, suggested
fixes, and help testing.
imap/imap.c
imap/imap_private.h
imap/message.c