MESSAGE
DATE | 2007-11-18 |
FROM | Ron Guerin
|
SUBJECT | Re: [NYLXS - HANGOUT] Website Updates
|
Ron Guerin wrote: > Ruben Safir wrote:
>> But most of all, how do you know when you've reached the end of the body? >> a blank line isn't enough or every paragraph would look like a new message. > > That's totally outside the message protocol. If you use Maildir, each > message is a separate file. In mbox, there *is* a delimiter between > each message. You need to either use an existing library for parsing > mbox files, or find out what delimiter Mutt's been using so you can > break these messages apart. A little Googling suggests that Mutt putts > A line that starts with _FROM at the start of each message and that any > other occurrence of this _FROM header that is not a message delimiter > will have been escaped.
Actually, I guess Mutt isn't putting the delimiter in, if you're using Mutt to read an mbox that Sendmail is doing delivery to, it'd be Sendmail or maybe procmail doing the delivery. Again, best to use some nice shiny CPAN mbox parser, but I'm sure if you take another look at your mbox file you can see what the delimiter is.
- Ron
|
|