Feb 142012
There is lots to be said about the intricacies of IMAP delete flags vs. actual expunging of deleted messages and the confusion caused when something is merely flagged for deletion and the user expected it to be really gone. This post is not about that. Everyone agrees that once a message is expunged, it definitely should be gone. But sometimes expunged messages still display in Thunderbird!
I often observe this:
- Delete message on the way to work using K-9 on my phone.
- Arrive at work and message is gone from my Inbox in Mail.app
- Come home, download new mail in Thunderbird and see an Inbox full of undead messages.
No amount of re-expunging and re-fetching mail helps. Grepping through the server-side Maildir shows the messages really are gone from the folders in which Thunderbird is still showing them.
It turns out the reason they are still displaying in Thunderbird is mundane client-side index corruption. To clean things up:
- Right-click on mailbox
- Choose Properties...
- Click Repair Folder
- Rejoice at tidy mailbox
THANK YOU! I was going crazy trying to change IMAP settings, caching, offline, expunge, etc… but nothing changed those stupid messages staying in the Inbox. Apparently I had a corrupted folder; this fixed it! For the record, I searched for “thunderbird still has deleted messages in imap folder”, this result should have been higher.
Also, your dog looks like he has explosive diarrhea.
I’m glad to have helped with your Thunderbird inbox.
As you surely guessed, that was not the intended dog depiction!
THANK YOU! seconded.
As with Thunderborked I’ve been going nuts trying to solve this one. Settings, expunge, blah, blah. Nothing worked. Fixed with three mouse clicks.
The person behind the dog looks suitably worried. 🙂
Another thank-you – I too was experiencing this with K9 on my mobile and Thunderbird on the desktop…
To add to this, I was getting sick of rebuilding my index file repeatedly. Disabling folder synchronization for the account seems to keep things in sync much better and I don’t have to rebuild the index. Tools > Account Settings > Synchronization and Settings > deselect “Keep messages for this account on this computer”.
Yes indeed thanks also! For me it was mutt that I had used to expunge and t-bird was frustrating me.
This describes exactly my problem (K-9 and all), but the fix did not work for me. I’m running OS X 10.8.4 and Thunderbird 17.0.7
Any other ideas?
Hmm, that’s frustrating. I don’t have any other tricks up my sleeve, sorry.
Thanks a lot for this hint!
I have this issue too. Is there a mozilla bug report associated with this behavior?
Thank you very much – that’s exactly what I was looking for.
Following up on my last comment: the Bugzilla bug that seems to be most relevant to this problem occurring in the first place is: https://bugzilla.mozilla.org/show_bug.cgi?id=693204. It also references some other bugs about faulty IMAP CONDSTORE support, so disabling CONDSTORE via the config editor is also a good idea. With the workarounds discussed in the bug, Repair Folder is almost always unnecessary (which is good, because repair folder resets custom folder view settings as well).