Module i3status_rs::blocks::maildir

source ·
Expand description

Unread mail. Only supports maildir format.

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

cargo build --release --features maildir

§Configuration

KeyValuesDefault
formatA string to customise the output of this block. See below for available placeholders." $icon $status "
inboxesList of maildir inboxes to look for mails in. Supports path/glob expansions (e.g. ~ and *).Required
threshold_warningNumber of unread mails where state is set to warning.1
threshold_criticalNumber of unread mails where state is set to critical.10
intervalUpdate interval, in seconds.5
display_typeWhich part of the maildir to count: "new", "cur", or "all"."new"
PlaceholderValueTypeUnit
iconA static iconIcon-
statusNumber of emailsNumber-

§Examples

[[block]]
block = "maildir"
interval = 60
inboxes = ["~/mail/local", "~/maildir/account1/*"]
threshold_warning = 1
threshold_critical = 10
display_type = "new"

§Icons Used

  • mail

Structs§

Enums§

Functions§