It is currently Tue, 17 May 2022 02:40:06 GMT



 
Author Message
 extracting text mail messages from binary mailbox
If I use strings to extract the text from a binary mailbox,
I'm wondering if there is a command that I can use to
extract the mail headers and the body.  I have formerly done this
on a _single_ email with:

   cat single.msg |sed -e '/^$/ q'

and

   cat single.msg |sed -e '1,/^$/ d'

but I don't always get perfect results from those sed commands.

However, it would seem necessary to first split the text
into legitimate mail messages from "<lf>From " to "<lf>From ".

In doing this, I would also have to eliminate any garbage text
(i.e. that text that isn't part of the header or body.
Much of this in the said binary mailbox (Entourage's Database)
is 4- or 5-character lines e.g. 9CTID or FLRC and I'm not sure
how those can be properly identified since a paragraph could end
with something like
this.

Thus, I'm trying to convert a binary mailbox into a
standard sendmail mailbox.  Thanks for any ideas, thoughts
or other help.



 Thu, 29 May 2008 06:19:51 GMT   
 extracting text mail messages from binary mailbox

Ooops!  It's harder than I thought since I first assumed
that Microsoft preserved the header line "<lf>From "
but they didn't and it's not clear what they use to
delineate the beginning and end of a mail message.



 Thu, 29 May 2008 06:25:36 GMT   
 extracting text mail messages from binary mailbox
On Sat, 10 Dec 2005 22:25:36 +0000 (UTC), d...@earth.sh

Maybe you can use the "export" or "save" commands of the mail program
that created the file.

--
A furore Normanorum libera nos, O Domine!
        [From the fury of the nor{*filter*} deliver us, O Lord!]
                -- Medieval prayer



 Thu, 29 May 2008 20:19:20 GMT   
 
   [ 3 post ] 

Similar Threads

1. Redirecting mail messages from user mailbox to another mailbox

2. extract mail message to file?

3. Script to extract portions of text from a text file

4. Extracting lines from a text file that match a certain criteria to another text file

5. search for mails in multible mailboxes with pgp-encrypted mails

6. Attach a text file to a mail send in Text based Unix

7. Extracting text from a file

8. Postscript file corrupted - extracting text/patching

9. How to extract columns from a text file?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software