Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Mail Clients and Perl

by markov (Scribe)
on Nov 18, 2003 at 08:08 UTC ( #307939=note: print w/replies, xml ) Need Help??

in reply to Mail Clients and Perl

You wonder what this has to do with Perl - well, the point is that I'm looking for a mail client that is powerful enough to be scripted in Perl. I want it to launch small Perl scripts after fetching mail or on my command, and I want them to manipulate what was downloaded so that I can play nice tricks with it.

One thing you must set out of your mind is that e-mail is simple. To anyone: handling e-mail correctly is a complicated tasks!! Nested multiparts, encodings, unicode... even correctly parsing a mail header containing addresses requires a few hundred lines of Perl. Of course, the sloppy job only needs one.

You have a choice between various sets of modules to script e-mail. For instance the MIME::Entity group, the Mail::Audit stuff, and my MailBox suite. They are all automated e-mail processors, not readers. IMO, the first two are easier to learn, because they are smaller, but leave more of the complications to the programmer. MailBox contains things like read(), forward(), bounce(), build(), rebuild(), and send() in one integrate library.

Nick Ing-Simmons has made tkmail, which is a mail reader, but I couldn't find it. There is a Mail::Procmail. In the near future, I will release a Mail::Box::Procmail, with a fully Perl-based configuration.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2016-10-21 09:54 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (288 votes). Check out past polls.