On Thu, Dec 27, 2001 at 06:54:57AM -0500 I heard the voice of
David T-G, and lo! it spake thus:
> 
> % And your regex will break on it too.  For instance:
> 
> [snipped]
> Because of the single space before the day in each header, right?  If
> that's the case note that I noted it and didn't guarantee it ;-)

No, because the first 'content' line of the body of the message is an
unescaped otherwise-valid From_ line.  Using your regex (or the more
simplisting /^From /), it would be identified as a seperate message,
rather than part of the actual message that it is.  The ONLY way to 'get
it right' that I can see is to trust the Content-Length: header.

(The problem that cropped up in my test parse. "Hey, this is my 'sent'
folder...  why are there messages from people OTHER than me?
Waitaminute....")



-- 
Matthew Fuller     (MF4839)     |    [EMAIL PROTECTED]
Unix Systems Administrator      |    [EMAIL PROTECTED]
Specializing in FreeBSD         |    http://www.over-yonder.net/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"

Reply via email to