How To Install imapfilter on Fedora 34

imapfilter is A flexible client side mail filtering utility for IMAP servers

Introduction

In this tutorial we learn how to install imapfilter on Fedora 34.

What is imapfilter

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.

We can use yum or dnf to install imapfilter on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install imapfilter.

Install imapfilter on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install imapfilter using dnf by running the following command:

sudo dnf -y install imapfilter

Install imapfilter on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install imapfilter using yum by running the following command:

sudo yum -y install imapfilter

How To Uninstall imapfilter on Fedora 34

To uninstall only the imapfilter package we can use the following command:

sudo dnf remove imapfilter

imapfilter Package Contents on Fedora 34

/usr/bin/imapfilter
/usr/lib/.build-id
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/a15e6aad9c295624704405e827d66c5d32a8fa
/usr/share/doc/imapfilter
/usr/share/doc/imapfilter/LICENSE
/usr/share/doc/imapfilter/README
/usr/share/imapfilter
/usr/share/imapfilter/account.lua
/usr/share/imapfilter/auxiliary.lua
/usr/share/imapfilter/common.lua
/usr/share/imapfilter/mailbox.lua
/usr/share/imapfilter/message.lua
/usr/share/imapfilter/options.lua
/usr/share/imapfilter/regex.lua
/usr/share/imapfilter/set.lua
/usr/share/man/man1/imapfilter.1.gz
/usr/share/man/man5/imapfilter_config.5.gz

References

Summary

In this tutorial we learn how to install imapfilter on Fedora 34 using yum and dnf.