Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Parsing a Unix Mbox

by rah (Monk)
on Jul 17, 2002 at 01:15 UTC ( [id://182295]=note: print w/replies, xml ) Need Help??


in reply to Parsing a Unix Mbox

I've had pretty good success with Mail::Procmail. I don't know if your familiar with the procmail program, but it provides a simple, rules based means of parsing mail. You can build rules based on header lines, like to/from, you can also look for matches in the body or subject line. based on your rules, you can file, forward, reply, etc. or strip off the message body to a seperate text file (sounds like this is the capability you're looking for). I have it running in a couple of production applications and it has performed flawlessly. Fair warning though, some people absolutely detest procmail rules - grammar/syntax. In fact the mere mention of the word procmail can start 'religious' wars.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-18 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found