Open Bug 1976143 Opened 4 months ago Updated 4 months ago

When storing an MBOX file (e-mail with MBOX FROM line) in an IMAP folder, the headers are corrupted (">FROM" is inserted)

Categories

(MailNews Core :: Backend, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

People

(Reporter: 52qtuqm9, Unassigned)

References

Details

If someone gives you an EML file which has a UNIX mbox from line at the start of it (which, yes, I know, it absolutely shouldn't, that's not how an EML file is supposed to be formatted), and you open the EML file in Thunderbird, it will open and display the message just fine. However, if you then do Message -> Copy to -> [IMAP account] => Inbox, the message on the IMAP server will end up with the mbox line in the middle of its header, quoted with ">" (i.e., it'll start ">From " instead of "From "), right after the X-Mozilla header lines added to the top of the message.

Either Thunderbird should refuse to open the malformatted EML File, or it should refuse to copy the file with a malformatted header to the IMAP server, or it should remove the "From " line either while reading in the EML file or before copying it to the server.

If the destination is a POP3 folder, the line is removed. This should also happen with an IMAP folder.

Alternatively, TB could also reject the import. But treating them like this is not good.

{Hint: If the file contains several emails, these are treated as part of the body for POP3.}

Status: UNCONFIRMED → NEW
Component: Message Reader UI → Backend
Ever confirmed: true
Product: Thunderbird → MailNews Core
See Also: → 1719121
Summary: EML file with mbox line at the beginning displays properly but copies wrong to IMAP server → When storing an MBOX file (e-mail with MBOX FROM line) in an IMAP folder, the headers are corrupted (">FROM" is inserted)
Version: Thunderbird 141 → Thunderbird 128
Duplicate of this bug: 1961349
You need to log in before you can comment on or make changes to this bug.