Mailnag

From ArchWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

mailnag is a Wayland e-mail notification daemon. It integrates well with mako and libnotify and comes with interactive configuration tooling, making setup very straight-forward.

Installation

mailnag can be installed with the mailnag package.

Note: You may also want to install gnome-keyring to satisfy the needed org.freedesktop.secrets service file.

Configuration

Run mailnag-config to create an initial configuration at ~/.config/mailnag/mailnag.cfg.

Usage

Users can run mailnag from within a shell while running a Wayland or Xorg session, given that a notification daemon is running.

Note: mailnag needs to be able to access a valid dbus session to communicate with a notification back-end.

Autostart

mailnag supports XDG Autostart out of the box. A systemd user service example has been included below as another option.

systemd user unit

Users will probably want to run mailnag in a systemd unit. Provided below is an example user unit where user id is the numeric ID of the user where this service is installed.

~/.config/system/user/mailnag.service
[Unit]
Description=Mailnag notification service

[Service]
ExecStart=/usr/bin/mailnag

[Install]
WantedBy=default.target

Then start mailnag.service.

XDG

The mailnag package provides a /usr/share/applications/mailnag.desktop file for use with XDG Autostart that is supported by various desktop environments.

See also