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. Here's an example ****** Date: Thu, 8 Oct 1998 07:55:01 -0600 From: mark david mcCreary <[EMAIL PROTECTED]> Sender: mark david mcCreary <[EMAIL PROTECTED]> Reply-To: mark david mcCreary <[EMAIL PROTECTED]> Subject: accounting time To: [EMAIL PROTECTED] X-Priority: 3 Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mailsmith 2.1.5 (Blindsider) From [EMAIL PROTECTED] Thu Oct 08 07:55:01 1998 To: [EMAIL PROTECTED] From: mark david mcCreary <[EMAIL PROTECTED]> Subject: accounting time Cc: Bcc: X-Attachments: Message-Id: <[EMAIL PROTECTED]> Greetings from Texas. ***** I want to end up with ******** From [EMAIL PROTECTED] Thu Oct 08 07:55:01 1998 To: [EMAIL PROTECTED] From: mark david mcCreary <[EMAIL PROTECTED]> Subject: accounting time Cc: Bcc: X-Attachments: Message-Id: <[EMAIL PROTECTED]> Greetings from Texas. ********* I then have hundreds of emails in this same format in one file (mbox). I want to remove the part from Date: ... ... ... X-Mailer: Mailsmith 2.1.5 (Blindsider) This clause appears once for each email. A regular expression of Date:.*Mailsmith 2.1.5 \(Blindsider\) sort of works, except that it gets the whole file. Putting this - non greedy ? Date:.*?Mailsmith 2.1.5 \(Blindsider\) does not do any better. If there are any reg exp experts out there that can whip out an answer, I'd appreciate it. I've given up on using the BBEdit Find and Replace, and will just run Perl from the command line. So extra credit if you can do this inside BBEdit 8.2 Thank you. mark -- ------------------------------------------------------------------ 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]>
