Introduction

Dicemail is a Perl library for working with email messages. The idea of Dicemail is to provide a set of utilities for writing small, simple mail tools. Dicemail provides the following abilties:

Always happy to receive feedback.

Install

Existing users should read the changelog.

Debian

Gonéri Le Bouder has put together a Debian package. I understand that if you add the line below to your /etc/apt/sources.list file you can use apt-get install libmail-dice-perl and apt-get update:

deb http://orniere-du-globe.net/debian ./

Source

Pre-requisites

Along with Perl, you will need the following Perl modules:

Version numbers are the minimums, you should be OK with later versions. Your *nix distribution probably has these modules as installable packages.

Build

  1. Grab Mail-Dice-0.02.tar.gz
  2. Unpack
  3. perl Makefile.PL
  4. make
  5. make install

Using

The full instructions are in the man pages: Dice::Mail, Dice::Mail::IMAP and Dice::Mail::Message. I recommend you read them to really understand what's going on.

By way of a quick-start:

  1. Create the directory .dicemail under your home directory.
  2. Create the directory .dicemail/account. Within this folder create a file named default with details of a mail account. See the examples to get you started.
  3. Create the directory .dicemail/filter
  4. Within the filter directory add a suitable base filter with the name base and other filters to taste.
  5. Fire up a client such as Sickle, don't forget to run in test mode first.

Examples

Accounts

Name Description
IMAP IMAP server account.

Account files must be readable only by the owner for Dicemail to accept them.

Filters

If you've done something interesting with filters, why not contribute them to the greater good?

My own filters

Name Description
base My own base filter, lists known email address, names etc.
move Moves and possibly drops email based on message properties.
dropold Deletes old messages in bulk folders.