A simple Notmuch notification tool
Install it globally with pip:
$ pip install not-much-fire
Execute always the most recent version with pipx:
$ pipx run not-much-fire
$ not-much-fire --help
Usage: not-much-fire [OPTIONS]
A simple Notmuch notification tool.
Requests Notmuch for new unread messages and send notifications to the
desktop environment. Already notified messages get not shown again for a
whole day. If they remain unread, they get are handled again on the next
day.
Options:
--notmuch-query <query> Used to query the unread messages from the Notmuch
database [default: is:unread and is:inbox]
--help Show this message and exit.
To get notification each time after notmuch
has updated its database, add
a new hook. Therefore add a new line like the following into
$DATABASE/.notmuch/hooks/post-new
.
#!/bin/bash
not-much-fire
# or: pipx run not-much-fire
Checkout man notmuch-hooks
to get further information about hooks and
notmuch
. I recommend to set the $NOTMUCH_CONFIG
environment variable to
reach compatibility with the XDG base directory
standard.