privacy alert(?): thunderbird full-empty Inbox weirdness
I just ran a clamav scan for fun, and it found a worm in my thunderbird inbox (.thunderbird/SOMETHINGRANDOM.default/Mail/Local Folders/Inbox). That was really surprising because my inbox was empty!
I did a less .thunderbird/.../Inbox and found 34M of messages I had deleted long ago or moved to other folders.
You can get rid of this junk by simply stopping thunderbird, then going into the CLI or your favourite file manager, and deleting Inbox, Inbox.msf and Inbox.sbd, then starting thunderbird again which will make a new empty inbox for you. Deleting these files while thunderbird is running might work too, but it seems like a bad idea to me.
As far as I can tell, all mail that was moved to other folders is in those folders too, but I don't guarantee that. Make backups. YMMV.
I put "privacy" in the subject because deleted emails are supposed to be deleted (after emptying the trash). Of course, if you want real privacy, you should use GPG (hint: enigmail thunderbird extension). Merely deleting files and emails doesn't protect you from these being undeleted. Use an encrypted filesystem too, if you care.