Philip --

...and then Philip Mak said...
% 
% On Wed, 26 Dec 2001, David T-G wrote:
% 
% > 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.
% 
% That doesn't seem to be true. For example, in one of my sent-mail files
% from pine, I saw this line (there was no ">" before it):
% 
% >From 66.28.28.22: Destination Host Unreachable

Very interesting...


% 
% pine knows not to recognize it as a "From" line, so I'm thinking that pine
% makes sure that it also has a date like "Mon Nov 26 06:33:50 2001" on it.

Hmmm...  It certainly might really do that, but it might also honor
the Content-Length: header and only look for a new message at <n>
bytes forward of the beginning of the last one.  I thought that only
Sun's dtmail did that (and I know that it does it buggily, which is why
everyone in the Sun circles recommends that you turn off that feature
and go back to seeing ^>From_ in the message body since dtmail doesn't
speak maildir).  You might see if there's a C-L: header and, if so,
copy a couple of test messages with this one in the middle off to a test
mailbox, get rid of the header, and see if it breaks...


% My current best guess for a regexp to match a message separator line is
% this:
% 
% /^From (\s*[^ ]+\s+... ... .. ..:..:.. ....)/
% 
% but I'm wondering if there might be obscure cases in which it breaks.

I dunno; I've only ever been simple enough to have been fooled by your
example above :-)


:-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: msg21915/pgp00000.pgp
Description: PGP signature

Reply via email to