On Thu, 10 Aug 2000 14:49:48 -0700, Kenneth Porter wrote:
KP> Not sure about the latter. How would you tell the difference between a
KP> line that was escaped vs. one that was originally in that form before
KP> sending? The MUA could make an educated guess based on context, I
KP> suppose, but is there any deterministic way to do it?
The deterministic way for reading a mbox file is (from
<http://www.qmail.org/man/man5/mbox.html>, btw the only/best
definition of the mbox format I could find. No, it's not an RFC...):
HOW A MESSAGE IS READ
A reader scans through an mbox file looking for From_ lines.
Any From_ line marks the beginning of a message. The reader
should not attempt to take advantage of the fact that every
From_ line (past the beginning of the file) is preceded by a
blank line.
Once the reader finds a message, it extracts a (possibly
corrupted) envelope sender and delivery date out of the
From_ line. It then reads until the next From_ line or end
of file, whichever comes first. It strips off the final
blank line and deletes the quoting of >From_ lines and
>>From_ lines and so on. The result is an RFC 822 message.
How the quoting of the From_ lines gets into a mbox file is explained
in the same document...
Regards
Peter
--
Peter Steiner <[EMAIL PROTECTED]>
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : archive@jab.org