IMAPFilter is a completely free and open source command-line software implemented in C and designed from the offset to act as a simple, yet intuitive mail filtering utility for POSIX compatible mail servers and operating systems, such as GNU/Linux and BSD.
The program can be used to easily and quickly flag, delete, move, and copy email messages. It supports the 4.x branch of the IMAP (Internet Message Access Protocol) protocol, and uses Lua for its configuration.
How does it work? Simple, when executed it uses IMAP (Internet Message Access Protocol) to connect to a remote mail server, then it sends searching queries to the respective server and processes mail accounts based on the results of the queries.
Features at a glance
Key features include definition of filters, size/date/status of a message, support for logical operators, list available and/or subscribed mailboxes, internationalisation (I18N) support, server namespace support, TLS and SSL support, as wel as IMAP STARTTLS support.
Command-line options include the ability to specify a custom configuration file written in the Lua programming language, as well as the ability to specify debug and log files. It is also possible to specify a command or view the program’s version.
Getting started with IMAPFilter
To install the IMAPFilter program on your GNU/Linux computer, you must download it from Softpedia, where it is distributed for free as a universal sources archive (tarball). Save the archive on a location of your choice and extracted its contents using an archive manager tool.
Open the Terminal app, navigate to the location of the extracted archive files (e.g. cd /home/softpedia/imapfilter-2.5.7) and run the ‘./configure && make’ command to configure and compile the program.
Install it system wide by running the ‘make install’ command as root or the ‘sudo make install’ command as a privileged user. Then, run the ‘imapfilter’ command to view its usage message and learn how to use it.