Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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]
[stevieb]: ohhh, aaaand, I just learned that you can power an Arduino (Uno at least) by connecting any single analog pin to 5v on the Pi GPIO! That's bloody handy

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2017-06-22 23:07 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.