On Tue, Mar 07, 2006 at 02:03:12PM -0600, mark david mcCreary wrote: > I'm trying to export email from Mailsmith into an mbox format that can > then be input to Mailsteward for archival. > > I originally got this mail into Mailsmith from Eurora, and things seem a > little mangled. > > If I could delete a few lines from each email I think I would end up > with a working mbox format.
I was going to suggest `formail`, but it looks like your file is a little too messed up for that. It can handle a missing "From " line, but not a "From " line in the middle of the headers. It looks like something (probably Mailsmith) added a whole new set of headers before the original headers. So, I think what you want is something like this: Find ^(Date: .*\r)(?:[-a-zA-Z0-9]+:.*\r)(From .*\r) Replace \2\1 This will preserve the Date header that would otherwise be dropped. One thing I found confusing in your post... By default, period doesn't match newlines... Ronald -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
