Processing single messages in a stream

Bill Moseley <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Sorry, I still don't have a good grasp on all the modules in Mail::Box.

I have a bunch of messages coming as a stream on stdin, in mbox format.
I need to process the messages one-by-one, but I don't need to access
them like a entire mbox.

This is for indexing messages.  So I'm looking for the fastest way to
process each message, have access to all the MIME parts and Mail::Header
methods so I can reformat and then output.  Basically, I'm
looking for a filter where I can pipe one or more messages.

I need to pick the best MIME part -- for example, use text/plain if
available, otherwise parse out the text from text/html -- I'm just
interested in parsing the text for a search engine.

I can use Mail::Box::Manager, but there seems to be a bit of overhead
loading all the messages.

Can someone suggest what modules would provide this ability.

Thanks,


-- 
Bill Moseley
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.