importing .eml file appends CRLF (when using maildir)
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
People
(Reporter: chrizilla, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
6.57 KB,
application/x-zip-compressed
|
Details |
steps to reproduce
(for a mail account with message store type = "maildir" (not mbox))
- drag and drop an .eml file from a file manager into Thunderbird's folder pane
- navigate the file manager to TB's profile folder\Mail
- find the newly added .eml file
- 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]
I did my best but couldn't find any duplicate.
https://bugzilla.mozilla.org/buglist.cgi?list_id=16964863&o2=regexp&o1=regexp&query_format=advanced&bug_type=defect&f2=short_desc&v2=%28newline%7Clinefeed%7CCRLF%7CCR%20LF%7Cblank%20line%29&f1=short_desc&product=MailNews%20Core&product=MailNews%20Core%20Graveyard&product=Thunderbird&v1=%28add%7Cappend%7Cextra%7Cimport%29
Updated•11 months ago
|
Comment 3•11 months ago
|
||
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.
Comment 4•10 months ago
|
||
dupeme: Bug 1716651 I think.
Comment 5•10 months ago
|
||
Thanks Alfred!
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 ?
Comment 7•10 months ago
|
||
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.
Description
•