Skip to content

Instantly share code, notes, and snippets.

@japhb
Created October 21, 2011 23:06
Show Gist options
  • Save japhb/1305223 to your computer and use it in GitHub Desktop.
Save japhb/1305223 to your computer and use it in GitHub Desktop.
Use cases for email handling in Perl
(The following is a brainstorm of things people might want to do with email, in "How do I ...?" format. For cases where the best answer requires Moose or other heavy modules, a second answer with fewer/lighter dependencies would be most appreciated.)
"How do I / What's the best way to / What do you use to ..."
* verify a purported email address is sane?
* parse an email address into smallest parts?
* canonify an email address?
* parse/canonify a date header?
* send a raw email (already stringified and encoded), simply and safely?
* send a (possibly templated) simple text email?
* send an email with multipart alternatives and attachments?
* encrypt/decrypt an email?
* send/receive email over secure protocols?
* parse an email and extract headers/info/MIME parts?
* work with very large emails in memory-constrained environments?
* extract/manage mails within a local mbox/MH/maildir/etc. folder?
* parse/process non-*nix mail formats (e.g. OS X .eml)?
* fetch remote emails via POP?
* read/manage remote email (IMAP)?
* process/sort incoming emails?
* index/search a collection of emails?
* clean up/canonify an email?
* check an email for spam/viruses?
* de-dup a collection of email addresses?
* filter a collection of email addresses through various blacklists?
* de-dup a collection of emails ("I'm on three lists and someone emailed the same thing to all of them")?
* thread a collection of emails?
* detect and manage bounces (e.g. with VERP)?
* perform mail merge and (non-spam) bulk mailing?
* create/manage a full (two-way, multi-user) mailing list?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment