#3940: Crash using Gmail over IMAP when copying message to Trash -----------------------+--------------------- Reporter: kevin8t8 | Owner: brendan Type: defect | Status: closed Priority: major | Milestone: Component: IMAP | Version: 1.8.2 Resolution: fixed | Keywords: -----------------------+--------------------- Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed * resolution: => fixed Comment: In [changeset:"a97afb72d892ec3dc3b75777e516037af9516051" 7042:a97afb72d892]: {{{ #!CommitTicketReference repository="" revision="a97afb72d892ec3dc3b75777e516037af9516051" Turn IMAP_EXPUNGE_EXPECTED back off when syncing. (closes #3940). imap_sync_mailbox() turned on IMAP_EXPUNGE_EXPECTED when issuing a EXPUNGE command during a sync. However, it forgot to turn it back off. That meant that an unexpected EXPUNGE that occurred during a mx_check_mailbox -> imap_check_mailbox() -> imap_cmd_finish() call was not setting idata->check_status = IMAP_EXPUNGE_PENDING; and so imap_check_mailbox() was not returning MUTT_REOPENED. This meant that although the Context had been changed, the index did not run update_index(), resulting in a possible segfault. Thanks to Uroš Juvan for reporting the issue, and his invaluable description of how to reproduce the problem. }}} -- Ticket URL: <https://dev.mutt.org/trac/ticket/3940#comment:7> Mutt <http://www.mutt.org/> The Mutt mail user agent