[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linebreaks \r\n
Malte Hubner <malte@huebner.com> writes:
> I tried both - qmail-inject and the sendmail wrapper. I got this
> mess with both of them.
They are both injection interfaces and expect their input to be native
unix text files.
> It's no problem for me to replace all \r\n characters with only \n
> character but it's not way you have to do it.
It is the way you have to do it.
> Normally it's no problem to mail \r\n breaked e-mails with PHP.
You are confused.
> Could there be a bug in my qmail? I am using qmail 1.03 but never
> heard about this problem anywhere.
That is because the problem is in your head. If you inject lines
containing carriage-return characters there is no reason for
qmail-inject to remove them. Before transmission via SMTP, a unix MTA
must convert LF to CRLF. If you inject lines already terminated by
CRLF, qmail quite reasonably assumes you know what you are doing and
transmits CRCRLF. If that is not what you want, "don't do that".
> It would be so much easier for me if I could send those "\r\n" mails.
Explain. Using "\n" is the right thing to do. It will work with any
MTA's local submission interface. Please understand the distinction
between local submission and SMTP transmission.
> Sendmail isn't running anymore on my system so i have no choice -
> i'll have to solve this problem anyhow with qmail.
No. The problem is in your PHP script.
--
Frank Cringle, fdc@cliwe.ping.de
voice: (+49 7745) 928759; fax: 928761