Skip to content
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

[Request] Dot stuffing support for QuotedPrint #10

Open
KnowZero opened this issue Oct 18, 2020 · 0 comments
Open

[Request] Dot stuffing support for QuotedPrint #10

KnowZero opened this issue Oct 18, 2020 · 0 comments

Comments

@KnowZero
Copy link

KnowZero commented Oct 18, 2020

Is it possible to add a function or parameter to enable dot stuffing support for QuotedPrint?

For SMTP sending RFC 5321

Before sending a line of mail text, the SMTP client checks the first character of the line. If it is a period, one additional period is inserted at the beginning of the line.
When a line of mail text is received by the SMTP server, it checks the line. If the line is composed of a single period, it is treated as the end of mail indicator. If the first character is a period and there are other characters on the line, the first character is deleted

.

https://tools.ietf.org/html/rfc5321#section-4.5.2

Which effecitively means if QuotedPrint is used for SMTP, and your link happens to get cut off and start with a dot on the next line, it will be disapear and break your link.

So either option to add an extra dot if it starts with a dot.

Or an option to encode dots as well. (cause there is a possibility the reading side isn't fully RFC5321 compliant either so encoding the dot might be a safer way to go about it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant