Closed Bug 1880867 Opened 7 months ago Closed 15 days ago

IMAP download process can write corrupt database info

Categories

(MailNews Core :: Networking: IMAP, defect)

Thunderbird 123
defect

Tracking

(thunderbird125 affected)

RESOLVED WORKSFORME
Tracking Status
thunderbird125 --- affected

People

(Reporter: d.mcdivitt, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: dataloss)

Attachments

(4 files, 1 obsolete file)

123.0b5 (64-bit)
Windows 11 Pro 23H2
I downloaded emails from IMAP account in the normal fashion and one email does not render correctly as initially placed in the inbox from the download process. My email web interface provides a function to download an EML file for a message. So I did that. Then I dragged and dropped the message from the Thunderbird inbox folder. The two files compare exactly except for five lines placed at the beginning added by Thunderbird. This proves Thunderbird downloaded the stream correctly.

The corrupt message when double-clicked and opened shows garbage in the subject field and attached images do not render because I do not display images from unknown email sources. When I clicked to display images they would not fetch and render.

When each file is dragged from the desktop and dropped into a folder they render correctly. Dragging the corrupt message to a different folder does not render correctly.

Because the two streams are the same (the EML file from Thunderbird and the EML file downloaded from the web interface), and because both EML files make valid, uncorrupted email when dropped into Thunderbird, the problem is the download process when header information is written to the database. Once database information is written the stream or wad is never reassessed to correct the database.

Will add more files. Possibly related to bug 1872677

Summary: IMAP download process can corrupt header info → IMAP download process can save corrupt header info
Summary: IMAP download process can save corrupt header info → IMAP download process can write corrupt database info
Status: NEW → UNCONFIRMED
Depends on: 1872849
Ever confirmed: false
See Also: → 1872677
Version: unspecified → Thunderbird 123
Component: General → Networking: IMAP
Product: Thunderbird → MailNews Core

David,
Is this better for you with beta 125?

Flags: needinfo?(david)

Hi Wayne,

I saw a corrupted email on March 29th. When looking at the message list the correspondents column was question marks for the email but the subject looked ok in the message list and when opened the email rendered fine. This would be the same issue of invalid info being written to the database for some reason since the message list may display from the database. That was the only issue I've had for a long time. I also think that was 124 beta 2.

This weekend I updated Thunderbird to have 125 beta 2 now.

Flags: needinfo?(david)
Attached file K.eml (obsolete) —
Attachment #9394579 - Attachment mime type: message/rfc822 → text/plain
Attachment #9380877 - Attachment mime type: message/rfc822 → text/plain
Attachment #9380878 - Attachment mime type: message/rfc822 → text/plain
Attachment #9380875 - Attachment mime type: text/plain → image/jpeg
Attachment #9394579 - Attachment is obsolete: true
Keywords: dataloss

A couple questions:
Do you know the imap server type you are using? E.g., gmail, dovecot etc.
Are you using offline store or do you just keep everything on the server?

FWIW, I dropped into an imap courier account inbox the attached problem message (K*.eml), edited it as new and sent it to an outlook imap account and it appears OK on arrival. But from what has been said, this is a random occurrence which is probably not easily repeatable.
(The outlook account does not use offline store.)

Blocks: 1872677
Duplicate of this bug: 1872677
See Also: 1872677

(In reply to gene smith from comment #7)

A couple questions:
Do you know the imap server type you are using? E.g., gmail, dovecot etc.
Are you using offline store or do you just keep everything on the server?

FWIW, I dropped into an imap courier account inbox the attached problem message (K*.eml), edited it as new and sent it to an outlook imap account and it appears OK on arrival. But from what has been said, this is a random occurrence which is probably not easily repeatable.
(The outlook account does not use offline store.)

My main email server is IMAP from powweb.com. I pull several mailboxes from that server and two gmail boxes. The issue has only been seen with my main mailbox which may have a couple hundred emails a day. The other mailboxes seldom get anything.

Mail is left on the server and deleted after ninety days by Thunderbird. Mail comes into each inbox with no filters run. After reading emails each inbox is emptied by running filters manually. The main mailbox may grow with new emails for a time until filters are manually run.

I have seen this issue most often with the first email fetch of the day where there are thirty or so emails going into an empty inbox. Occasionally it has happened throughout the day in a small batch of email downloaded.

I have determined the stream or wad is always good and always saved to the MBOX file properly but header info written to the database is spoiled for some reason. The problem is now very infrequent maybe due to recent application changes. When the problem does occur, I can restore my Thunderbird folder from the day before, pull email again, and it will reliably happen.

Thanks for info.
Maybe related to bug 1888790 (even though this is imap) since OK in mbox apparently bad in .msf (database).

Depends on: 1890230

David, have you seen this in 128 or newer?

Flags: needinfo?(d.mcdivitt)

I have not seen this issue in quite some time. I don't know when I last saw it.

Flags: needinfo?(d.mcdivitt)

Thanks for the update

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

Attachment

General

Creator:
Created:
Updated:
Size: