Using IMAP servers with 'Just mark it as deleted' for the delete options, and expunge on exit turned OFF.
If I am in a mailbox deleting messages, everything goes fine if I delete slowly. However, if am looking ahead and see the next bunch of messages I don't care about and I hit the delete key like 10+ times in a row rapidly, Thunderbird will for some reason send an expunge command to the server in the middle doing so! I'll see the little green progress bar pop up at the bottom like it's reconnecting to the server, and then the message total will click down, and then the UI catches up and shows the last few messages striking through.. but all the prior ones are now gone.
I turned on IMAP debugging on my server (running Dovecot) and indeed it seems to issue the command right after logging in, for no reason I can discern:
Code: Select all
2 ID ("name" "Thunderbird" "version" "38.3.0")
3 select "INBOX.Sent"
4 UID fetch 1:* (FLAGS)
5 expunge
6 UID fetch 818 (UID RFC822.SIZE BODY.PEEK[])
7 IDLE
Code: Select all
mail.imap.check_deleted_before_expunge;false
mail.imap.expunge_after_delete;false
mail.imap.expunge_option;0
mail.imap.expunge_threshold_number;20
I can capture a video of it happening if needed.