note 86392 added to function.mail

From: Date: Thu, 16 Oct 2008 13:29:33 +0000
Subject: note 86392 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-145413@lists.php.net to get a copy of this message
I just had a little run-in with the postfix developers over at postfix-users about this issue. http://tech.groups.yahoo.com/group/postfix-users/message/244799 Quote:Wietse Venema: >> Specifically, Postfix accepts local submissions in UNIX format >> (LF) or MSDOS format (CRLF) format BUT YOU MIST NOT MIX FORMATS. > > So how does postfix determine what format you are using? > Is there a way to explicitly tell it what to expect? > Postfix looks at the first input line. There currently is no way to override this, so your best bet is to use the same line terminator consistently (having a first line with CRLF might work "best" for hybrid mail, but that behavior is not promised). The current behavior originates from the time when binary transparency was considered a good thing. -- There seemed to me to be a marked hostility towards the idea of trying to be helpful about this, but on the other hand I got the impression they might not be hostile if someone offered a patch for a SENDMAIL_EOF_COMPAT_MODE or similar. Personally I am not much good at C, but the challenge is hereby issued :) ---- Server IP: 62.73.196.231 Probable Submitter: 80.203.181.85 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/86392 Del: integrated -- https://master.php.net/note/delete/86392/integrated Del: useless -- https://master.php.net/note/delete/86392/useless Del: bad code -- https://master.php.net/note/delete/86392/bad+code Del: spam -- https://master.php.net/note/delete/86392/spam Del: non-english -- https://master.php.net/note/delete/86392/non-english Del: in docs -- https://master.php.net/note/delete/86392/in+docs Del: other reasons-- https://master.php.net/note/delete/86392 Reject -- https://master.php.net/note/reject/86392 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145413) next »