Module i3status_rs::blocks::notmuch

source ·
Expand description

Count of notmuch messages

This block queries a notmuch database and displays the count of messages.

The simplest configuration will return the total count of messages in the notmuch database stored at $HOME/.mail

Note that you need to enable notmuch feature to use this block:

cargo build --release --features notmuch

§Configuration

KeyValuesDefault
formatA string to customise the output of this block. See below for available placeholders." $icon $count "
maildirPath to the directory containing the notmuch database. Supports path expansions e.g. ~.~/.mail
queryQuery to run on the database.""
threshold_criticalMail count that triggers critical state.99999
threshold_warningMail count that triggers warning state.99999
threshold_goodMail count that triggers good state.99999
threshold_infoMail count that triggers info state.99999
intervalUpdate interval in seconds.10
PlaceholderValueTypeUnit
iconA static iconIcon-
countNumber of messages for the queryNumber-

§Example

[[block]]
block = "notmuch"
query = "tag:alert and not tag:trash"
threshold_warning = 1
threshold_critical = 10
[[block.click]]
button = "left"
update = true

§Icons Used

  • mail

Structs§

Functions§