home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / sendmail / 2259 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!rutgers!psuvax1!uxa.ecn.bgu.edu!mp.cs.niu.edu!rickert
  2. From: rickert@mp.cs.niu.edu (Neil Rickert)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: Final newline required??
  5. Message-ID: <1992Sep11.215533.4871@mp.cs.niu.edu>
  6. Date: 11 Sep 92 21:55:33 GMT
  7. References: <CYTRON.92Sep10132154@helios.dfci.harvard.edu>
  8. Distribution: comp.mail.sendmail
  9. Organization: Northern Illinois University
  10. Lines: 18
  11.  
  12. In article <CYTRON.92Sep10132154@helios.dfci.harvard.edu> cytron@helios.dfci.harvard.edu (Andrew Cytron) writes:
  13. >
  14. >Hello, 
  15. >
  16. >I am trying to ascertain if a final newline is required for messages 
  17. >by the sendmail/the standard for INTERNET TEXT MESSAGES (rfc822).  I looked
  18. >over rfc822 and the sendmail man pages but could find no mention  of this.
  19.  
  20. RFC822 defines the message as a sequence of lines, with each line ending
  21. in CRLF.  Thus the last character must be LF (which is the same as the
  22. Unix newline).
  23.  
  24. Perhaps you were really asking if there must be an empty line as the
  25. last line of the message?  If this was you question, then the answer is
  26. NO.  There is no such requirement.  In a typical unix setup, the delivery
  27. agent (often /bin/mail) will add a final empty line if the message does
  28. not already end in one.  But this is because the unix mailbox format
  29. requires an empty line before the next "From " line.
  30.