Closed Bug 1859639 Opened 1 year ago Closed 7 months ago

Thunderbird duplicates GMail mails - imap and pop

Categories

(Thunderbird :: Untriaged, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: davito9w, Unassigned)

References

Details

(Keywords: dupeme, regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Steps to reproduce:

I asked thunderbird to fetch mails from Gmail

Actual results:

All mails recovered from Gmail are duplicated. Also, the unread count seems wrong.

Expected results:

Each of those mails should be in one copy only. This did not happen before the update to 115.3.1 today

Are you using IMAP or POP3?

Keywords: regression

Depending on the provider, I use POP3 or IMAP. For Gmail I use IMAP.

This has happened this morning with a POP3 account. I unfolded a conversation and while selecting each mail in turn in order to read them, the counter jumped to 4294967294, and I realized the last mail of the conversation was duplicated.

Another example in IMAP : new conversation with mail count = 2, indeed 2 mails, but as soon as I selected the second, the counter jumped to 4294967295. BTW, that's one more than in my previous comment.

Summary: Thunderbird duplicates GMail mails → Thunderbird duplicates GMail mails - imap and pop

For the record, this is still going on today. I am currently using v115.6.0. The bug happens often when I unfold a conversation, then delete the first mails one by one.

This is a quite frequent issue, several occurrences each day. But also, I receive a few dozens mails each day in several conversations.

I just found out something which is probably significant: I use conversation mode. If I switch off conversation mode, the bug changes: I can delete tons of mails without any issue, the only thing I can see is that some of the last mails are duplicated and that trying to delete them will create phantom mails.

Is this happening in unified folders ("dossiers unifiés" I think), or in the individual inboxes as well?

It definitely happens in the unified folders. Give me a few days in order to accumulate enough mails to do tests in the individual inboxes.

I did a few tests using the individual inboxes but with conversation mode, Everything went on smoothly. It seems this bug is limited to unified folders. I'll do a few more tests and report back

Could you please test if hiding the message pane in unified folders (via F8) makes a difference?

Hiding the message pane in unified folders does indeed make a difference: I just deleted dozens of messages with the message pane disabled but with conversation mode on, without any issue. I haven't been able to delete so many messages in a row without problems since I upgraded to Supernova.

See Also: → 646168

I found out that if I get the phantom message after deleting a few messages in a thread in unified folders, simply by focusing the individual folder and focusing back unified folder, everything returns to normal.

I just noticed that selecting any other folder (like Sent or Trash) and selecting back Inbox fixes glitches.

I am now using v115.7.0

Frederic,
Does this also happen with Windows started in safe mode?
https://support.microsoft.com/en-us/help/12376/windows-10-start-your-pc-in-safe-mode

Flags: needinfo?(davito9w)
Keywords: dupeme

Sorry, I had a mail problem, and it took me one month to see it and fix it.

I could not test the safe mode. Or rather, when in safe mode, I don't have any network, so that IMAP does not work. Since the majority of the issues were with IMAP, I can't really test. I checked the POP conversations which I still had, none had any issue, but this does not really prove anything IMO.

I wanted to check with safe mode with networking, but my Dell did put me in safe mode but without any networking, so that I can't check this.

Flags: needinfo?(davito9w)

Update: I was able to reproduce the issue in safe mode. Explanations: my antivirus BitDefender edits the titles of the messages which it thinks are suspicious. So I edit the names of those mails when I am sure they are not dangerous, and I want to keep them. To do this, I use a TB plugin named Header Tools Improved. I noticed that after editing a mail this way, it was almost always "duplicated".

I found such a mail a few minutes ago. So I rebooted to safe mode, and edited the mail title in TB and sure enough the mail was "duplicated". As usual, switching the focus to any other mailbox and back to unified folders, unduplicated it.

(In reply to Frederic Da Vitoria from comment #17)

As usual, switching the focus to any other mailbox and back to unified folders, unduplicated it.

Please test the upcoming 115.9 release and report back if this helps. See also bug 646168 comment 116.

Flags: needinfo?(davito9w)

(In reply to Frederic Da Vitoria from comment #17)

Update: I was able to reproduce the issue in safe mode. Explanations: my antivirus BitDefender edits the titles of the messages which it thinks are suspicious. So I edit the names of those mails when I am sure they are not dangerous, and I want to keep them. To do this, I use a TB plugin named Header Tools Improved. I noticed that after editing a mail this way, it was almost always "duplicated".

I think "Bitdefender" and "Header Tools Improved" may be causing this issue. I recommend stopping both of them to confirm this.
It is not a good idea to use "Header Tools Improved" to edit the subject of messages in Gmail IMAP account.
https://addons.thunderbird.net/en-US/thunderbird/addon/header-tools-improved/reviews/1170786/

(In reply to EarlgreyTea from comment #19)

I think "Bitdefender" and "Header Tools Improved" may be causing this issue. I recommend stopping both of them to confirm this.
It is not a good idea to use "Header Tools Improved" to edit the subject of messages in Gmail IMAP account.

I did not say so, but I did not use Header Tools Improved on an IMAP account. I couldn't have used it in safe mode, since IMAP mails are invisible from unified folders in safe mode.

About BitDefender, you are right. Actually, I am going to wait for the next batch of mails, then I'll disable all my plugins before doing tests and I'll report back. And if 115.9 reaches me later, I'll do another test then.

BTW, I am currently using 115.8.1

Flags: needinfo?(davito9w)

We have been without any Internet connection for more than 4 days. The good consequence of this is that I had plenty of emails to test! I disabled all my plugins and began deleting mails from conversations (and from single mails). The bug did not appear again. I enabled my plugins one after the other until only two remained and did some tests each time. Still no bug. One of the 2 remaining plugins could very well be the culprit: Remove Duplicate Messages. I will enable the other one, and I will report back in a few days.

Remove Duplicate Messages is not the culprit. Or it is not the only one. With Remove Duplicate Messages disabled, I got a duplicate message, although in a strange form: there were non duplicated messages between the duplicates. Also, the unread count should be 0. I disabled my extensions again. This time, I uninstalled the Bitdefender extension (tricky, this one!). I will report back in a few days.

No more problems now for a few weeks. All extensions enabled again (except 2 of them, which I haven't triggered in years and I probably should uninstall altogether). Maybe 115.9 fixed it, but needed some time to fix everything?

I'll let those who know how the Mozilla team use the Bugzilla status set them here, but this is solved as far as I'm concerned.

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: