On Apr 24, 2024, at 09:05, John Levine via Postfix-users
<postfix-users@postfix.org> wrote:
I suppose, but sending bare LF in SMTP is definitely wrong, so he needs to
fix that first.
On 28.04.24 19:15, Doug Hardie via Postfix-users wrote:
Well, the header lines are properly terminated by CRLF. However, the text
lines are whatever I get from postfix.
Get from postfix how?
If you receive mail via program or mailbox delivery from local(8), line
endings on UNIX system are converted to LF (\n). The MTA donverts them to
this state.
If you receive mail via SMTP/LMTP, you should get "CR+LF" (\r\n) and when
feeding to program/mailbox you should convert them yourself.
Sending mail is the opposite: when sending via SMTP, you should end lines
using CR+LF.
When using postfix' sendmail, it usually does autodetection/conversion:
http://www.postfix.org/postconf.5.html#sendmail_fix_line_endings
Generally that is just a LF. I
copied the text and inserted the CRs and sent it to see what happens. I
get the same result: = signs at each fold point.
The solution was to replace all the =LFs with a couple spaces.
so, you discard the notion of "continued line" here.
Postfix/receiving MUA wraps the text of long lines properly (e.g., without
and =). There was one other =<nn> occurance that I found a replaced with
spaces. This solution was easy to accomplish since the text of the
message is accessed via mmap. I expected to see some extraneous spaces in
the message, but something is optimizing them out.
There are MUAs (outlook) which tend to ignore line breaks and reformat the
mail as they wish, which may look awfully (you can luckily turn this off).
However, even these MUAs tend to understand final "=" as a sign
"this line doesn't have to be wrapped".
Do not rely on these MUAs behaviour by dropping the final "=".
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Due to unexpected conditions Windows 2000 will be released
in first quarter of year 1901
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org