-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
\n replaced with \r\n when decoding decrypted text content on Linux #442
Comments
Unfortunately passing the decrypted content through a Now, MimeKit could parse the decrypted MIME, then re-serialize it using the OS-specific newline format, and then parse it back again... but that's a lot of processing. Perhaps a simpler solution is to just canonicalize |
I think that I'll be ready to make a new release (2.0.7) this coming weekend, so this will be included in that nuget release when it happens. |
Thanks! |
It'll always canonicalize all text/* parts to the OS's line ending format. I think that makes more sense than having overrides. |
…ulti-byte charsets Fixes issue #442 the Right Way(tm)
Perhaps related to the canonization mentioned in #436
On Linux:
\n
line endings).\n
are replaced with\r\n
, thus resulting in a file that is binary different from the original.I can see how, if the initial text encoding requires canonization (?), on the receiving/decryption end there might be no way to know if the
\r
's were added or were in the original content to begin with.However an argument can be made that when decoding text content, the decoder should use OS appropriate line endings. Either as default behavior or option controlled.
P.S. I'm after s/mime and haven't tried if it's the same with text files without encryption.
The text was updated successfully, but these errors were encountered: