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.


In reply to Re: Mail Clients and Perl by markov
in thread Mail Clients and Perl by l3nz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.