Closed Bug 1888585 Opened 11 months ago Closed 10 months ago

importing .eml file appends CRLF (when using maildir)

Categories

(MailNews Core :: Backend, defect)

Thunderbird 115
x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1716651

People

(Reporter: chrizilla, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

steps to reproduce

(for a mail account with message store type = "maildir" (not mbox))

  1. drag and drop an .eml file from a file manager into Thunderbird's folder pane
  2. navigate the file manager to TB's profile folder\Mail
  3. find the newly added .eml file
  4. hex-compare the new file (from step 3) with the original file (from step 1)

actual results

The file created in TB's profile folder differs from the original file by an appended CRLF (0D 0A).

expected results

  • No CRLF should be appended.
  • The file created in TB's profile folder and the original file should be 100% identical.

reiteration / generational loss

Note that a repeat of the steps outlined above (i.e. re-importing the file created in step 3 by dragging/dropping it into TB's folder pane) appends yet another CRLF, so the file grows bigger and bigger in size with each iteration!

relevance

Apart from an unnecessary and unintended alteration of the data, this bug severely complicates file deduplication and incremental/differential backup (since the files are not identical anymore).

[keywords: extra newline, linefeed]

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Status: NEW → UNCONFIRMED
Ever confirmed: false
Keywords: dupeme
Whiteboard: dupeme

I remember similar misbehaviour reported in Bug 1427732, so possibly this bug is a regression, or maybe a case that didn't get accounted for in the fix for Bug 1427732. (That bug is about copying a message from an IMAP folder to a local folder, and this one is about importing a message from a file to a local folder.) If not, then I bet Jonathan might be able to find a true duplicate for this one.

See Also: → 1427732

dupeme: Bug 1716651 I think.

Thanks Alfred!

Status: UNCONFIRMED → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1716651
Resolution: --- → DUPLICATE
Summary: importing .eml file appends CRLF → importing .eml file appends CRLF (when using maildir)

Magnus, I had read that bug report before, but it's not clear (to me at least) what "copying" means there. Please note:

  • I am not copying but importing.
  • CRLF (\r\n) is added in my case, whereas bug 1716651 only describes an extra \n.

Are you sure that this is really the exact same problem we are describing ?

Very likely it's the same code involved.
Anyway, check back once it's resolved and if it's really something else then we can reopen.

Ok, thank you, Magnus.

As mentioned in comment #6 of bug 1716651, I cannot reproduce the appended CRLF reported here in beta/daily, so hopefully it's fixed.
But another problem (bug 1898635) seems to have crept in instead.

Component: Untriaged → Backend
Keywords: dupeme
Product: Thunderbird → MailNews Core
Blocks: 1898635
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: