Commit
323e3d6e5e4c has a side effect where spurious FETCH flag
updates after setting the \Seen flag can cause a sync to abort.
Remove manually setting \Seen for all trashed message before copying.
The next commit will change the imap trash function to use the same
code as the imap copy/save function for syncing the message before
server-side copying.
/* loop in case of TRYCREATE */
do
{
- rc = imap_exec_msgset (idata, "UID STORE", "+FLAGS.SILENT (\\Seen)",
- MUTT_TRASH, 0, 0);
- if (rc < 0)
- {
- dprint (1, (debugfile, "imap_fast_trash: Unable to mark messages as seen\n"));
- goto out;
- }
-
rc = imap_exec_msgset (idata, "UID COPY", mmbox, MUTT_TRASH, 0, 0);
if (!rc)
{