Re: W32/mail, header trimming to only contain \r\n
| From: | Melvyn Sopacua | Date: | Fri, 07 Jun 2002 19:02:36 +0000 |
| Subject: | Re: W32/mail, header trimming to only contain \r\n | ||
| References: | 1 2 3 4 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5506@lists.php.net to get a copy of this message | ||
Markus,
At 22:56 6/5/2002 +0200, Markus Fischer wrote:
Here's the update. The current snapshot atI haven't been able to generate any mail, that doesn't work yet (to sendmail) - well - apart from the mailer daemon - but that didn't work in the first place. Even this works: "From: Php mailer <usererr2@idg.nl>\r\nTo: Melvyn <melvyn@idg.nl>\nReceived: from localhost (localhost [127.0.0.1])\r\n\tby webmaster.idg.nl (UCX VMS MAIL/20000713-7.1/20000713-7.1) with SMTP id $smtpid\n\tfor <$mail[to]>; ".date('r') . "\n\r\nX-Wrong-Header: I fucked up\r\n\r\n" which is about the crankiest set of headers I could come up with. Good job! Few other servers left to check at home. Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacuaftp://ftp.proventum.net/pub/php/win32-snapshots/php4-win32-latest.zip contains the updates which reformats the header so it's always \r\n, no matter what the input was. Leading and trailing \r\n and multiple occurences of \r\n are also removed. This should remove many problems which were reported, especially with qmail [1].