How to Tell Thunderbird to Really Delete Messages From Your IMAP Server


June 8th, 2009

This quick tip is for Mozilla Thunderbird users who use Thunderbird with an IMAP account, but also use another mail user application (MUA) such as Outlook or webmail. If you’re in a similar situation, you might notice that when you delete messages in Thunderbird, they remain visible in your other MUA, until you exit Thunderbird. This can be especially impractical, for example, when you left Thunderbird running at the office and go to check your webmail from home. All of the spam you deleted in Thunderbird is still sitting there.

Fortunately, there’s an extremely simple solution to this problem. In Thunderbird:

Preferences -> Advanced -> Config Editor…

Search for “expunge”, and enable the “mail.imap.expunge_after_delete” option by double-clicking it. You need to restart Thunderbird after applying this setting.

Here are the before and after shots:

Expunge - Before and After

This setting tells Thunderbird to automatically “expunge” (IMAP terminology for “permanently delete”) any messages that have been deleted within Thunderbird. Otherwise, it just marks the message with a “delete” flag that many other mail clients ignore by default.

The “expunge_after_delete” option should be safe to use; your Trash folder will still work normally. This setting only controls the communication with the email server.

3 Responses to “How to Tell Thunderbird to Really Delete Messages From Your IMAP Server”

  1. Dominic Says:

    Thanks Ryan, I’ve seen this on a few sites while googling. However, I have thunderbird 2.0.0.23 and it simply does not work. I’ve been trying for 2 days now and nothing seem to happen when this setting is True. I have 2 computers running the same version of Thunderbird and running the same IMAP account and whenever I move a message from a folder to another on one computer, the other computer will still show the message on both folders. The only thing that will make Thunderbird recognizing that the file is no longer in the first folder is by closing Thunderbird on the originating computer.

  2. Ryan Thompson Says:

    Hi Dominic,

    Thanks for stopping by! I’m sorry I don’t have a specific answer to your question.

    You might try going to the Thunderbird bug reporting site. I found one bug there that may be related to your problem:

    https://bugzilla.mozilla.org/show_bug.cgi?id=399475

    The main bug tracker (for all Mozilla products) is: https://bugzilla.mozilla.org/

    Hope this helps!

    - Ryan

  3. Alternative Outlook und Thunderbird - Forum de Luxx Says:

    [...] [...]