Re: correct email formatting
| From: | Justin French | Date: | Thu, 28 Sep 2000 02:03:33 +0000 |
| Subject: | Re: correct email formatting | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17839@lists.php.net to get a copy of this message | ||
David Robley wrote:
> Have you had a look at RFC822? It's pretty much the 'bible'. Nearest copy
> to you might be at
> http://mirror.aarnet.edu.au/pub/ietf/rfc/rfc822.txt
This was exactly what I was after, thanks.
They use the term CRLF (carrige return, line feed)... If I were trying
to split an email on these CRLF's (to split the message into headers,
body, etc), what would i split on?
\n\n ?
\r\n ?
<QUOTE from the RCF>
B.2. SEMANTICS
Headers occur before the message body and are terminated by
a null line (i.e., two contiguous CRLFs).
A line which continues a header field begins with a SPACE or
HTAB character, while a line beginning a field starts with a
printable character which is not a colon.
A field-name consists of one or more printable characters
(excluding colon, space, and control-characters). A field-name
MUST be contained on one line. Upper and lower case are not dis-
tinguished when comparing field-names.
</QUOTE>
Justin French