-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported mbox files should use LF instead of CRLF as EOL by default #607
Comments
@ziqin |
The fix looks straightforward, but the exported mbox file still mixes LF and CRLF. See highlighted I only tested with the 14.1.3-b6 version downloaded from https://github.com/thunderbird/import-export-tools-ng/blob/v14.1.3/xpi/beta/import-export-tools-ng-14.1.3-b6-tb.xpi. I haven't tried to build from the source. I'm not sure if the problem is related to packaging. |
@ziqin |
I've tried to restart Thunderbird and reinstall the plugin, but the problem still exists. FYI: every message exported with IETNG from my inbox has mixed LF and CRLF. I've sent you an email with an original mbox file from Thunderbird. Please also check the Trash folder if you cannot find it in inbox.
|
@ziqin Clear your debug console then do the export. Capture and send me the output to my test email. |
I’m afraid that I cannot test the plugin this week as I’m traveling. I’ll test it ASAP after returning home. Sorry for the inconvenience.
|
@ziqin |
Sorry for the late response. Today I just realize that we were probably exporting mbox files in different ways when testing the CR problem. With b7/b8/b9, when I export a message or several selected messages from the context menu of the message list, the exported mbox file still contains CR characters, but if I export a whole folder, the mbox file exported will have no CR character. @cleidigh, could you please try to export in the first way? Let's see if you could reproduce the problem. BTW, I cannot find related output from the debug console. I'm unfamiliar with Thunderbird extension development and maybe I was playing with the Developer Tool in a wrong way. |
@ziqin |
The selected message export works well on my machine with b10. Thank you very much! |
Excellent.
I should be releasing soon.
Christopher
…On Sun, Dec 8, 2024 at 12:11 AM Ziqin Wang ***@***.***> wrote:
The selected message export works well on my machine with b10.
Thank you very much!
—
Reply to this email directly, view it on GitHub
<#607 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAZ7636Z6FRA35TORBONW32EPIITAVCNFSM6AAAAABLHCOMYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGQZDCOBYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The "default" mbox Database Format specified in RFC 4155, Appendix A requires that
Although RFC 4155 is not a formal standard for mbox, I believe it's nevertheless a good idea to adhere to the "default" format defined in RFC 4155 by default to improve interoperability, given that IETNG already decided to follow its requirement for From_ separator (#455).
Current Status
It is observed that the current IETNG implementation exports an mbox file mixing LF and CRLF: the first 3 lines (the From_ separator line,
X-Mozilla-Status
andX-Mozilla-Status2
header lines) terminates with LF, while the remaining lines terminates with CRLF.An mbox database using CRLF as EOL causes problem for MUA like mutt, which displays unwanted
^M
at the end of theDate
andSubject
headers.Expected Behavior
Every line in the exported mbox database ends with LF instead of CRLF.
The text was updated successfully, but these errors were encountered: