Re: Reading filed mail from the Mail.app?
Re: Reading filed mail from the Mail.app?
- Subject: Re: Reading filed mail from the Mail.app?
- From: Nathaniel Irons <email@hidden>
- Date: Mon, 24 Jun 2002 17:49:25 -0400
On Fri, Jun 21, 2002 at 06:04:51AM +0200, Markus Hitter wrote:
>
>Do I have to get creative with external NSTasks & Procmail & Formail?!?
>
>
Probably not too much as mbox files are quite easy to parse:
>
each mail begins with "From " after an empty line. Then drop
>
each line beginning with one word and ":".
>
>
Well, I'm not sure wether this works in 100.00% of all cases, so
>
please look up the appropriate RFC.
If only it were that easy. That algorithm will work most of the time,
like crossing the street by skipping through traffic.
The relevant RFCs, starting with 2822, are too numerous to count, and
only concern themselves with wire format, not stored format. Here's a
short course:
http://cr.yp.to/immhf.html
http://www.jwz.org/doc/content-length.html
Fortunately I believe Pantomime can read mbox:
http://www.collaboration-world.com/pantomime/
-nat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.