Closed Bug 1293091 Opened 8 years ago Closed 6 years ago

Deleting a message from the IMAP trash sometimes makes it come back for a split-second, Activity Manager shows wrong count in this case

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1495279

People

(Reporter: jorgk-bmo, Unassigned)

Details

Attachments

(1 file)

Deleting one more multiple messages from the IMAP trash sometimes makes them come back for a split-second, the Activity Manager shows the wrong count in this case.

See enclosed video. This is an intermittent problem, hard to say how to aggravate it. I have the impression that hitting delete in quick succession makes it more likely to happen.

One could put it down to a visual effect, but in fact it seems that the message(s) that flash back get deleted twice, hence the wrong count in the Activity Manager. This is also quite confusing. If one refers to the Activity Manager to see how many message got deleted, the number is too high.

(Kent, we talked about this phenomenon in some private e-mail exchange in March 2016.)
MaildirStore? BerkleyStore? 

What is your "IMAP delete model" choice? (Server Setings/When I delete a message: setting)
What is actual mail folder name of the "trash" at IMAP server and at Thunderbird?
What is your mail.server.server#.trash_folder_name setting?

What messageKey value(UID of mail if IMAP) is shown at "Order Received" column for relevant mails?
Is the "trash" OfflineUse=On folder in Thunderbird?

Usually, "delete a mail at IMAP Trash in Tb" is as follows;
  At a cached connection where Trash is selected, uid NNN store +Flags(\Deleted). That's all.
  Tb requests UID of UNDELETED mail only or ignores mail with \Deleted flag, no further action is needed.
  "Expunge at IMAP server" will be invoked by Thunderbird or other IMAP clients or server, sooner or later.
If IMAP delete model in Tb is other than "Mark it as deleted", mail with \Deleted flag is not shown, because msgDBHdr for the \Deleted mail is not created or is removed.
If IMAP delete model in Tb is "Mark it as deleted", msgDBHdr for the \Deleted mail is created and kept, and the mail with \Deleted flag is shown with trash icon, with striku-thru line.

What IMAP command is sent to IMAP server by Tb? What is IMAP server response to it?
(Tb's IMAP logging is always available in Tb)

"Deleted mail" is executed using faked messageKey?
1. "Delete of UID=XX in trash" is requested
   -> fakedKey=YY is generated for "move/delete UID=XX" using OfflineStore, magDBHdr for UID=XX is removed and is hidden
2. Because of "move/delete by fakedKey", uid XX store +Flags(\Deleted) is issued
3. After completion of "move/delete by fakedKey", msgDBHdr for fakedKey=YY is removed.
If this kind of phenomenon, "msgDBHdr removed" event may happen for two msgDBHdrs.
OK, here some answers:
"Local" storage for the IMAP Trash is mbox.
"IMAP delete model": Move it to this folder .... Note: I'm removing messages from the Trash,
so that's when they get deleted permanently.
Trash name in TB and on IMAP server: Trash.
mail.server.server#.trash_folder_name: Was user set "Trash". I reset it to see what happens.
No offline use.

When I find time to look at it further, I'll run it with IMAP logging. As I said: It doesn't happen every time and lately it's become harder to make it happen.
Forward duping to 1495279 since that is more severe.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: