IMAPFilter is a mail filtering utility. It connects to remote mail servers using the Internet Message Access Protocol (IMAP), sends searching queries to the server and processes mailboxes based on the results. It can be used to delete, copy, move, flag, etc. messages residing in mailboxes at the same or different mail servers. The 4rev1 and 4 versions of the IMAP protocol are supported.
Features
Some of IMAPFilter's features are:
Searching of messages using many available criteria in the IMAP protocol, such as:
Status (recent, unread, etc.) of a message.
Size of a message.
Age of a message.
Matching of a string or a regular expression pattern in the headers or the body of a message.
Ability to use logical operators (and/or/not) while searching messages.
Different capabilities available to process messages, including:
Deleting messages.
Moving messages to a mailbox in the same or different servers
Copying messages to a mailbox in the same or different servers.
Marking messages or changing message flags.
Fetching of messages, as a whole or in parts (header, body, attachments, etc.).
Listing of the available and/or subscribed mailboxes, along with support for the IMAP CHILDREN extension.
Creating, deleting, renaming, subscribing or unsubscribing mailboxes
Internationalisation (I18N) support.
Server namespace support using the IMAP NAMESPACE extension.
Secure Socket Layer (SSL) or Transport Layer Security (TLS) encrypted imaps (port 993) connections.
Encrypted connections using the IMAP STARTTLS extension.
User authentication with the Challenge-Response Authentication Mechanism (CRAM), specifically CRAM-MD5.
Perl Compatible Regular Expressions (PCRE) support.
Real-Time Server notification with the IMAP IDLE extension.