[comp.mail.headers] Mail header format?

jas@ISI.EDU (Jeff Sullivan) (02/27/91)

AM I correct in deducing that *all* email header fields a re listed,
one per line, starting at the top (any continuations are
space-indeneted on following lines), and the header is terminated by a
blank line?  All lines following the blank are the body.

Yes?

jas

--
--------------------------------------------------------------------------
Jeffrey A. Sullivan		| Senior Systems Programmer
jas@venera.isi.edu		| Information Sciences Institute
jas@isi.edu                    	| University of Southern California

barmar@think.com (Barry Margolin) (02/27/91)

In article <16912@venera.isi.edu> jas@ISI.EDU (Jeff Sullivan) writes:
>AM I correct in deducing that *all* email header fields a re listed,
>one per line, starting at the top (any continuations are
>space-indeneted on following lines), and the header is terminated by a
>blank line?  All lines following the blank are the body.

You're correct if you're trying to describe RFC822 mail format.

Read the RFC for more details.
--
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar

cluther@supernet.dallas.haus.com (Clay Luther) (03/02/91)

jas@ISI.EDU (Jeff Sullivan) writes:


>AM I correct in deducing that *all* email header fields a re listed,
>one per line, starting at the top (any continuations are
>space-indeneted on following lines), and the header is terminated by a
>blank line?  All lines following the blank are the body.

Very close.  However, a header line may span several lines legally.  For 
instance, a legal From: line is as so:

From: Killer BOB
  <kbob@tp.us>

It is legal because the line following the header entry From: begins with 
white space.  Therefore, it is not sufficient to look at just one line when
parsing the headers.

And, yes, the headers are terminated by a blank line.


-- 
Clay Luther, Postmaster          cluther@supernet.dallas.haus.com 
  Harris Adacom Corporation      cluther@enigma.dallas.haus.com
  Voice:  214/386-2356           MS 23, PO Box 809022, Dallas, Tx 75380-9022
  Fax:    214/386-2159           Your mileage may vary.  Void where prohibited.