Subject: | Transport::Sendmail + qmail = extra blank line |
When I started using Email::Sender on my local machine, I discovered
that I was getting an extra blank line between the header and the body.
This caused every (non-multipart) message to start with a blank line.
I eventually discovered that this is because my sendmail executable is
from qmail, and it doesn't like CRLF line endings. If you strip the CRs
before piping the message to sendmail, you don't get the extra blank line.
Arguably, this is a bug in qmail, but it's a long-standing one that
doesn't seem likely to be fixed, and qmail is reasonably popular. Do
you know of any version of sendmail that doesn't work properly when fed
platform-native line endings? Maybe Email::Sender::Transport::Sendmail
should use the native line ending instead of CRLF.
I've solved this for myself by writing a wrapper for sendmail that
strips all CRs from the input, but it'd be nice to have a universal
solution.