Philip, et al --

...and then Philip Mak said...
% 
% Regarding the "From [EMAIL PROTECTED] Wed Jun 06 18:44:53
% 2001" lines in an mbox file...

Yep.  Note that they're only in an mbox file, too.


% 
% What is the regular expression for matching whether the line in an mbox
% file is the beginning of a new message?

Your MDA will put that ^From_ line when it delivers to an mbox file, but
it won't otherwise (check a Maildir message's file to see).

Your MDA will also escape any ^From_ in the body to avoid confusion with
a message separator line -- if it's delivering to an mbox file.

Thus, it should be sufficient to match on any ^From_ line as long as
you're working with an mbox file (which you can confirm by checking the
very first line of the file, which should tell you one way or another
regardless of whether or not the mbox file has one or more messages in
it) and then also ignore any ^>From_ that you might find, and not worry
about ^From_ if you're not in an mbox file.


HTH & HAND & Happy Holidays to all

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg21899/pgp00000.pgp
Description: PGP signature

Reply via email to