GithubHelp home page GithubHelp logo

Comments (8)

Saurbaum avatar Saurbaum commented on September 28, 2024 1

from mimekit.

jstedfast avatar jstedfast commented on September 28, 2024

Not sure if the above commit fixes this (sorta seems like it shouldn't?), but it's the only issue I could find.

from mimekit.

jstedfast avatar jstedfast commented on September 28, 2024

Ok, so this is likely to either be a bug in MimeKit's Unix2DosFilter -or- MailKit's SmtpDataFilter.

Not sure which (if either) the bug exists in :-\

If it's not in either of those, not sure where it could be...

from mimekit.

jstedfast avatar jstedfast commented on September 28, 2024

Would it be possible to attach the original text/plain and text/html content files? Those might help me diagnose this a bit.

from mimekit.

jstedfast avatar jstedfast commented on September 28, 2024

Wrote up a quick unit test based on your protocol log to construct the exact same MimeMessage and then piped it through to a MemoryStream backed SmtpStream the same exact way that SmtpClient sends the message in the DATA command, but no luck reproducing (even without the Unix2Dos filter changes).

I'm at a loss to reproduce this issue...

from mimekit.

Saurbaum avatar Saurbaum commented on September 28, 2024

Welp this is utterly weird. Problem is definitely my end and not in [Mail/Mime]Kit.

If I inspect the strings in the debugger they are showing CRLF as expected. As soon as I dump them out to a file they revel their true colours.

from mimekit.

jstedfast avatar jstedfast commented on September 28, 2024

But that still doesn't explain why carriers are saying your emails contain bare carriage returns right? Or am I confused?

from mimekit.

Saurbaum avatar Saurbaum commented on September 28, 2024

It seems I had in the HTML formatting some lines ending in LFCR. That seemingly would be processed into
LF
CR

And I think looking at the way it would convert the HTML into a plain text version it would end up with a series of LFCR at the start of the message which the viewer in Visual Studio was than trying to make human readable and not showing the actual data.

So the email message absolutely does have a bare CR in it because its companion LF is on the previous line. Making it harder to spot in my data was that when you have a chain of several together they look much more normal.
LF
CRLF
CRLF
CR

from mimekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.