[REBOL] Re: E-mail header info strip-off
From: philb:upnaway at: 10-Jun-2001 0:03
Hi Scott,
That will not work for multiple messages in a single text file.
Though I should think it would be easy to split the single text file into individual
text files. Then load up the directory read through the files one at a time and use import-email
message.
If this is the route you go down then you might be interested in an email client I am
working on. It expects all the seperate emails to be in seperate files inside a directory.
Cheers Phil
-- Origional Message --
From: Geza Lakner
> I would like to write a visual borwser for e-mail messages saved in a single
text file.
> (Actually, first of all I would like to browse my selected, saved messages
from this list :-) )
> My question is, does incidentally anybody have a parse rule that would
strip-off all the junk
> from the file (i.e. repeating "Received" path listings), put the meaningful
header fields and the message body
> in a structured REBOL block which can be traversed easily.
Hi, Geza,
This is a tough one!!!!!
First, 'message is an email message that includes all the great headers that you
dislike. ;-)
Now for the magic that I slaved *all* morning over:
my-email-object: import-email message
I'm glad THAT project is over. REBOL already thought of this one and they did
it just for you!
--Scott Jones