Closed Bug 1736917 Opened 3 years ago Closed 3 years ago

Thunderbird combines mail threads when moved to a local folder with a mail filter

Categories

(Thunderbird :: Filters, defect, P3)

Thunderbird 95

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1734847

People

(Reporter: samorris, Unassigned)

Details

(Keywords: regression)

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

I am running Thunderbird Daily V95.0a1 (another person assisting me with the issue has identified that the issue is present in Thunderbird Daily V94.0a1 as well) on Linux (Fedora F34) and I am having an issue with Mails from several mail lists, whereby when browsed in the inbox they are fine, but when the message filters I have for the two mail lists moves the mails to relevant local folders, some of the mails in both folders are corrupted in that they show hieroglyphics. If I look at the source of the corrupted mails they show the headers, etc, from several other emails from the same folder, but those emails are still visible in the folder. A repair of the offending folders rectifies the issue, but only if I am in the folders viewing the list of emails, if I am in another folder and run the repair on the corrupt folder it seems to do nothing. I can even be browsing one of the corrupt emails, run the folder repair, and see the issue get resolved in front of me. I have around 45 local folders and associated message filters moving mails to them, but the issue has only ever occurred on two of them, being mails from the Fedora and libreoffice mail lists. Is it possible the mail lists are doing something under certain circumstances (given that it doesn't happen on all mails from the two mail lists) that Thunderbird is not coping with?
Using the filter to move new mails to one of the folders in question after the repair, caused the mail files that were originally corrupted, which the repair fixed, to become corrupted again, and a repair on the folder this time did not fix the issue.
I have also tried deleting the .msf file for the Fedora Local Folder and let Thunderbird re-create the msf file the next time emails arrived in my inbox, and when the filter moved the files some of the mails were corrupted like the original mails were.
In testing this issue I created a "Local Folders" on my mail server and had the filter move the mails to that folder. When the filter ran the mails did not exhibit the corruption, so I moved them back to my inbox, updated the filter to move the mails to a new sub-folder of "Local Folders" and the move by the filter corrupted some of the mails.
Is this a known issue with these versions of Thunderbird?

Actual results:

In two of the local folder locations some threads are getting combined with other threads in the same folder, but this does not cause those threads to not show. The threads that have been "merged" in with the thread that was moved show as hieroglyphics not as the actual text. Not only do the threads have the hieroglyphics but when I did a reply to the mail list for one of them that reply was held for the mail list moderator to evaluate because it exceeded the allowed mail list message size.

Expected results:

I would expect the moved mails to not be combined with other mail.

Attached file copy-test.tar

emails for testing

I have uploaded copy-test.tar which contains 9 emails and can be used to demonstrate the issue. I am using
thunderbird-94.0b4 and the released version in Fedora 34 of thunderbird-91.1.0-1.

To reproduce the problem just follow these steps.

  1. After untarring the copy-test.tar file, open each email and then save each to an IMAP server folder using the thunderbird beta.

  2. Create a folder under "Local Folders".

  3. Go to the IMAP folder and select all emails.

  4. Then choose "copy" to copy those emails to the folder created in "Local Folders".

5 Examine the emails in the local folder. Some will have portions of other emails in them. Some will have binary data.

You can then quit the beta version and start a released version. The issue will remain. But, if you then repair the folder
it will be OK again.

This shows one email with portions of the raw data from another email within.

Having the same issue with beta4

Priority: -- → P3

Seems like a duplicate of bug 1734847.

Keywords: regression

I'll have to try the STR.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(mkmelin+mozilla)
Resolution: --- → DUPLICATE

(In reply to Magnus Melin [:mkmelin] from comment #7)

I'll have to try the STR.

*** This bug has been marked as a duplicate of bug 1734847 ***

You've closed the BZ but didn't say what beta version would have the fix. thunderbird-94.0b5 still fails on a copy, even though the Repair Folder
function fixes it when run later.

Closed as a duplicate -the dupilcate is still open

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(mkmelin+mozilla)

Was about to give up, but now I see I am able to reproduce after all!
Didn't see any problem when the local folder was in unthreaded view, but then I switched to threaded and there is something looking like lots and lots of binary data after the one next to the last one (at time ...:14 in your screenshot msg-id 6775f691-d93e-5102-12fd-aba4179cf517@...

I don't see anything wrong obviously wrong in the actual folder mail data.

Ben, can you have a look?

Flags: needinfo?(mkmelin+mozilla) → needinfo?(benc)
Attached file testcase.zip

To reproduce the viewing problem - not sure it's a reading problem or not - just copy XYZ and ZYX.msf from this zip in (on the file system) to under Local Folders and restart. Check the message mentioned above and try to scroll down down down down down in it.

(In reply to Magnus Melin [:mkmelin] from comment #11)

Created attachment 9249125 [details]
testcase.zip

To reproduce the viewing problem - not sure it's a reading problem or not - just copy XYZ and ZYX.msf from this zip in (on the file system) to under Local Folders and restart. Check the message mentioned above and try to scroll down down down down down in it.

I couldn't get it to occur with that XYZ.msf, but I did manage to replicate it. Notes here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1734847#c36

Flags: needinfo?(benc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: