-
Notifications
You must be signed in to change notification settings - Fork 44
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
Omit \r\r\n #76
base: master
Are you sure you want to change the base?
Omit \r\r\n #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is simple enough, but I have a couple of questions:
- Would it make sense for it to be a
while
instead of anif
to effect stripping all trailing\r
? - It would be good to test this behavior. Have you taken a look at doing that?
*RFC 2821: SMTP commands and, unless altered by a service extension, message In addition, the appearance of "bare" "CR" or "LF" characters in text |
Check if endline is already \r\n
Just an additional hint. I anybody wan't to use the (great!) nullmailer with s/mime encoded mails like me, ionums patch is absolutely essential. All attempts to sign (end encrypt) mails with 'openssl smime' will fail without the patch! See https://stackoverflow.com/questions/66228622/how-to-use-openssl-to-sign-an-email-message-and-curl-to-send-it |
Please merge this. It fixes errors like this one:
which showed up regularily after my sendmail based smart relay got a fix for CVE-2023-51765. Typically caused by a cron job printing a message ending in \r. I believe the problem can be reproduced by simply doing:
|
Check if endline is already \r\n