How To Install mailnag on Fedora 34

mailnag is Mail notification daemon

Introduction

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

What is mailnag

Mailnag checks POP3 and IMAP servers for new mail and when it finds one creates a proper GNOME 3 notification that mentions sender and subject.

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

Install mailnag 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 mailnag using dnf by running the following command:

sudo dnf -y install mailnag

Install mailnag 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 mailnag using yum by running the following command:

sudo yum -y install mailnag

How To Uninstall mailnag on Fedora 34

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

sudo dnf remove mailnag

mailnag Package Contents on Fedora 34

/usr/bin/mailnag
/usr/bin/mailnag-config
/usr/lib/python3.9/site-packages/Mailnag
/usr/lib/python3.9/site-packages/Mailnag/__init__.py
/usr/lib/python3.9/site-packages/Mailnag/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends
/usr/lib/python3.9/site-packages/Mailnag/backends/__init__.py
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/base.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/base.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/imap.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/imap.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/local.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/local.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/pop3.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/__pycache__/pop3.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/backends/base.py
/usr/lib/python3.9/site-packages/Mailnag/backends/imap.py
/usr/lib/python3.9/site-packages/Mailnag/backends/local.py
/usr/lib/python3.9/site-packages/Mailnag/backends/pop3.py
/usr/lib/python3.9/site-packages/Mailnag/common
/usr/lib/python3.9/site-packages/Mailnag/common/__init__.py
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/accounts.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/accounts.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/config.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/config.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/dist_cfg.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/dist_cfg.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/exceptions.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/exceptions.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/i18n.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/i18n.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/imaplib2.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/imaplib2.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/mutf7.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/mutf7.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/plugins.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/plugins.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/secretstore.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/secretstore.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/subproc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/subproc.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/common/accounts.py
/usr/lib/python3.9/site-packages/Mailnag/common/config.py
/usr/lib/python3.9/site-packages/Mailnag/common/dist_cfg.py
/usr/lib/python3.9/site-packages/Mailnag/common/exceptions.py
/usr/lib/python3.9/site-packages/Mailnag/common/i18n.py
/usr/lib/python3.9/site-packages/Mailnag/common/imaplib2.py
/usr/lib/python3.9/site-packages/Mailnag/common/mutf7.py
/usr/lib/python3.9/site-packages/Mailnag/common/plugins.py
/usr/lib/python3.9/site-packages/Mailnag/common/secretstore.py
/usr/lib/python3.9/site-packages/Mailnag/common/subproc.py
/usr/lib/python3.9/site-packages/Mailnag/common/utils.py
/usr/lib/python3.9/site-packages/Mailnag/configuration
/usr/lib/python3.9/site-packages/Mailnag/configuration/__init__.py
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/accountdialog.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/accountdialog.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/configwindow.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/configwindow.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/plugindialog.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/__pycache__/plugindialog.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/configuration/accountdialog.py
/usr/lib/python3.9/site-packages/Mailnag/configuration/configwindow.py
/usr/lib/python3.9/site-packages/Mailnag/configuration/plugindialog.py
/usr/lib/python3.9/site-packages/Mailnag/daemon
/usr/lib/python3.9/site-packages/Mailnag/daemon/__init__.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/conntest.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/conntest.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/dbus.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/dbus.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/idlers.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/idlers.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mailchecker.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mailchecker.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mailnagdaemon.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mailnagdaemon.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mails.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/__pycache__/mails.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/daemon/conntest.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/dbus.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/idlers.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/mailchecker.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/mailnagdaemon.py
/usr/lib/python3.9/site-packages/Mailnag/daemon/mails.py
/usr/lib/python3.9/site-packages/Mailnag/plugins
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/libnotifyplugin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/libnotifyplugin.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/soundplugin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/soundplugin.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/spamfilterplugin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/spamfilterplugin.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/userscriptplugin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/__pycache__/userscriptplugin.cpython-39.pyc
/usr/lib/python3.9/site-packages/Mailnag/plugins/libnotifyplugin.py
/usr/lib/python3.9/site-packages/Mailnag/plugins/soundplugin.py
/usr/lib/python3.9/site-packages/Mailnag/plugins/spamfilterplugin.py
/usr/lib/python3.9/site-packages/Mailnag/plugins/userscriptplugin.py
/usr/lib/python3.9/site-packages/mailnag-2.2.0-py3.9.egg-info
/usr/share/applications/mailnag-config.desktop
/usr/share/applications/mailnag.desktop
/usr/share/doc/mailnag
/usr/share/doc/mailnag/AUTHORS
/usr/share/doc/mailnag/LICENSE
/usr/share/doc/mailnag/NEWS
/usr/share/doc/mailnag/README.md
/usr/share/icons/hicolor/128x128/apps/mailnag.png
/usr/share/icons/hicolor/16x16/apps/mailnag.png
/usr/share/icons/hicolor/22x22/apps/mailnag.png
/usr/share/icons/hicolor/24x24/apps/mailnag.png
/usr/share/icons/hicolor/256x256/apps/mailnag.png
/usr/share/icons/hicolor/32x32/apps/mailnag.png
/usr/share/icons/hicolor/48x48/apps/mailnag.png
/usr/share/icons/hicolor/96x96/apps/mailnag.png
/usr/share/locale/bg/LC_MESSAGES/mailnag.mo
/usr/share/locale/ca/LC_MESSAGES/mailnag.mo
/usr/share/locale/cs/LC_MESSAGES/mailnag.mo
/usr/share/locale/de/LC_MESSAGES/mailnag.mo
/usr/share/locale/es/LC_MESSAGES/mailnag.mo
/usr/share/locale/fr/LC_MESSAGES/mailnag.mo
/usr/share/locale/gl/LC_MESSAGES/mailnag.mo
/usr/share/locale/hr/LC_MESSAGES/mailnag.mo
/usr/share/locale/id/LC_MESSAGES/mailnag.mo
/usr/share/locale/it/LC_MESSAGES/mailnag.mo
/usr/share/locale/pl/LC_MESSAGES/mailnag.mo
/usr/share/locale/pt/LC_MESSAGES/mailnag.mo
/usr/share/locale/pt_BR/LC_MESSAGES/mailnag.mo
/usr/share/locale/ru/LC_MESSAGES/mailnag.mo
/usr/share/locale/sr/LC_MESSAGES/mailnag.mo
/usr/share/locale/sv/LC_MESSAGES/mailnag.mo
/usr/share/locale/tr/LC_MESSAGES/mailnag.mo
/usr/share/locale/uk/LC_MESSAGES/mailnag.mo
/usr/share/locale/zh_CN/LC_MESSAGES/mailnag.mo
/usr/share/locale/zh_TW/LC_MESSAGES/mailnag.mo
/usr/share/mailnag
/usr/share/mailnag/account_widget.ui
/usr/share/mailnag/config_window.ui
/usr/share/mailnag/mailnag.ogg
/usr/share/mailnag/mailnag.png
/usr/share/metainfo
/usr/share/metainfo/mailnag.appdata.xml

References

Summary

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