🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #235

Re: Delimiter of a standard mail spool file.

#235
From: Eric W. Ziegast
Date: Fri, 10 Apr 1992 05:20
18 lines
1060 bytes
> Could somebody please tell me what the standard delimiter of a mail
> spool file is?

"\n\nFrom" where "From" is the beginning of the message.
At the beginning of the spool, there are no leading returns.

Basically, if the last line you read was a blank line and your
current line starts with "From":

	!strncmp(buffer ,"From ", strlen("From "))

you're at the beginning of a message.  Usually, just a leading
"From " is enough since a good mailer will escape other instances
of "From " as ">From ".
--
Eric Ziegast

PS: Code above stolen from MH.
Technical Details
Message-ID: <1992Apr10.052052.4538@uunet.uu.net>
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet!ziegast
References: <1992Apr10.010511.11691@wam.umd.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet!ziegast
From: ziegast@uunet.uu.net (Eric W. Ziegast)
Subject: Re: Delimiter of a standard mail spool file.
Message-ID: <1992Apr10.052052.4538@uunet.uu.net>
Sender: usenet@uunet.uu.net (UseNet News)
Nntp-Posting-Host: rodan.uu.net
Reply-To: ziegast@uunet.uu.net (Eric W. Ziegast)
Organization: UUNET Technologies - Falls Church, VA
References: <1992Apr10.010511.11691@wam.umd.edu>
Date: Fri, 10 Apr 1992 05:20:52 GMT
Lines: 18