Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75525 invoked from network); 24 Aug 2009 08:48:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2009 08:48:14 -0000 Authentication-Results: pb1.pair.com header.from=t.andreatta@troppoavanti.it; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=t.andreatta@troppoavanti.it; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain troppoavanti.it from 81.174.60.194 cause and error) X-PHP-List-Original-Sender: t.andreatta@troppoavanti.it X-Host-Fingerprint: 81.174.60.194 81-174-60-194.staticnet.ngi.it Linux 2.6 Received: from [81.174.60.194] ([81.174.60.194:36189] helo=mx4.wavegroup.it) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/F2-03363-AC3529A4 for ; Mon, 24 Aug 2009 04:48:12 -0400 Received: (qmail 18241 invoked from network); 24 Aug 2009 08:48:07 -0000 Received: by simscan (version 1.4.0) ppid 18236 pid 18238 (t 0.1001s) (scanners: attach: 1.4.0 clamav: 0.94.2/m:49); 24 Aug 2009 08:48:07 -0000 Received: from unknown (HELO [10.39.112.198]) (tullio.andreatta@wavegroup.it@[10.39.112.198]) (envelope-sender ) by 10.39.45.32 (qmail-ldap-1.03) with SMTP for ; 24 Aug 2009 08:48:07 -0000 Message-ID: <4A925316.5020701@troppoavanti.it> Date: Mon, 24 Aug 2009 10:45:10 +0200 Organization: Wave Technologies S.r.l. User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: internals@lists.php.net References: <4A8EC373.8040002@chris.cs278.org> <20090821191145.GA9393@joeysmith.com> In-Reply-To: <20090821191145.GA9393@joeysmith.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] mail() and header folding/line endings From: t.andreatta@troppoavanti.it (Tullio Andreatta ML) Joey Smith: > It's hard to know what to tell PHP developers when we get mixed > messages from someone like Wietse... No, it's not so hard. PHP developers must follow the standard: - use "network EOL" (CRNL) when speaking SMTP; - use "system EOL" (CRNL or NL or CR) when speaking with local MTA. Eventually mail() should convert "mixed line-endings" to "right line-endings", and "right line-endings" may be selected by the system administrator (a php.ini "mail_line_ending = system|network" switch?). > As for "other vendors", I can tell you first-hand that sendmail and > exim both handle "mixed line-endings" just fine. Actually a "real" PHP programmer is not using mail() at all, because nobody know where the application will be installed. -- Tullio Andreatta Disclaimer: "Please treat this email message in a reasonable way, or we might get angry" ( http://www.goldmark.org/jeff/stupid-disclaimers )