Sieve

An e-mail filtering language supported by the Cyrus IMAP daemon, and defined in RFC:3028. Think of it as procmail for human beings, since it seems to be actually readable and understandable six months after you've defined your filters.

Resources: