Re: slight bug in Log_mail - use of \r\n breaks some mail systems
| From: | Jon Parise | Date: | Thu, 14 Aug 2003 03:48:44 +0000 |
| Subject: | Re: slight bug in Log_mail - use of \r\n breaks some mail systems | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19706@lists.php.net to get a copy of this message | ||
On Thu, Aug 14, 2003 at 11:28:59AM +1000, Alex Hayes wrote:
> Some of you might remember some posts awhile ago about how the use of \r\n
> in mail headers can break some qmail systems (and i also believe postfix...
> well in one situation where I have tested this it does...), ie... the
> headers get broken.. and you can end up with mail headers within the actual
> message body.
>
> I believe the extent of this argument boiled down to the fact that you
> shouldnt use \r\n on unix systems, and you should just use \n
It's safe to use "\n" all the time. I've found that the line endings
will be appropriately converted to "\r\n" should the message get fired
over SMTP (where "\r\n" is standard).
Thanks for pointing this out. The change will be included in the next
release of the Log package.
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)