On Thu, Dec 27, 2001 at 06:39:56AM -0500 I heard the voice of David T-G, and lo! it spake thus: > % > % I was just testing some mbox-parsing code the other day, and I needed a > % quick mbox of reasonable size to test it against. Hey, how about > % ~/mail/sent? > > One would think so... > > > % > % But it's got bare "^From " lines in mid-message where they 'naturally' > % appeared. So, either you need a bit more smarts than just "^From ", or > % mutt doesn't write 'sent' as a true mbox. > > And I trust that this all works when you open it with mutt, right? [Hey, > it never hurts to check.]
It works just fine with mutt. And your regex will break on it too. For instance: (from forwarding on a newsgroup post, some names changed to protect the guilty) --- >From [EMAIL PROTECTED] Tue Jan 12 08:05:47 1999 Message-ID: <[EMAIL PROTECTED]> Date: Tue, 12 Jan 1999 08:05:47 -0600 From: Me <[EMAIL PROTECTED]> To: You <[EMAIL PROTECTED]> Subject: Numero Uno from Matt's Arhives Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i X-WorldsBestEditor: vi Status: RO Content-Length: 4877 Lines: 103 >From [EMAIL PROTECTED] Mon Sep 7 19:35:34 1998 Path: news.futuresouth.com!news.futuresouth.com!dca1-feed3.news.digex.net!digex! newsfeed.axxsys.net!newspump.monmouth.com!newspeer.monmouth.com!intgwpad.nntp.te lstra.net!nsw.nntp.telstra.net!news.syd.connect.com.au!news.mel.connect.com.au!u nico.com.au!thorfinn From: [EMAIL PROTECTED] (Thorfinn) Newsgroups: alt.sysadmin.recovery [...] --- Mutt, I guess, outsmarts the mbox by reading Content-Length:, which you'd pretty much have to do I guess. To me, it just seems like putting too much trust in the LDA, whatever that may be, but... Then again, why not trust? mbox is fragile as hell anyway, what's one more shaky assumption? ;) -- 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"