Dicemail is a Perl library for working with email messages. It
provides a set of utilities for writing small, simple mail tools and
handles account specifications, abstracts operations for different
mail server types (currently only IMAP), abstracts messages,
and supports operations on mail defined by Perl code.