]> granicus.if.org Git - mutt/commitdiff
Remove h->active hack in imap_sync_message_for_copy().
authorKevin McCarthy <kevin@8t8.us>
Tue, 2 Apr 2019 17:58:34 +0000 (10:58 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 2 Apr 2019 17:58:34 +0000 (10:58 -0700)
Commit 285baf9a improved FLAGS parsing such that "spurious" FLAGS
updates won't cause a mailbox reopen.

Remove the h->active=0 hack because it isn't needed now and makes
reasoning about deletes, purges, and message set generation more
difficult.

imap/imap.c

index 9f13eae888de8b3451a40f07d3bc5ed0af62c1e6..e830e83888de97a5e784e330316cde1ec47ff999 100644 (file)
@@ -1200,9 +1200,6 @@ int imap_sync_message_for_copy (IMAP_DATA *idata, HEADER *hdr, BUFFER *cmd,
   mutt_buffer_addstr (cmd, flags);
   mutt_buffer_addstr (cmd, ")");
 
-  /* dumb hack for bad UW-IMAP 4.7 servers spurious FLAGS updates */
-  hdr->active = 0;
-
   /* after all this it's still possible to have no flags, if you
    * have no ACL rights */
   if (*flags && (imap_exec (idata, cmd->data, 0) != 0) &&
@@ -1211,13 +1208,9 @@ int imap_sync_message_for_copy (IMAP_DATA *idata, HEADER *hdr, BUFFER *cmd,
     *err_continue = imap_continue ("imap_sync_message: STORE failed",
                                   idata->buf);
     if (*err_continue != MUTT_YES)
-    {
-      hdr->active = 1;
       return -1;
-    }
   }
 
-  hdr->active = 1;
   if (hdr->deleted == HEADER_DATA(hdr)->deleted)
     hdr->changed = 0;