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
Key | Values | Default |
---|---|---|
format | A string to customise the output of this block. See below for available placeholders. | " $icon $status " |
inboxes | List of maildir inboxes to look for mails in. Supports path/glob expansions (e.g. ~ and * ). | Required |
threshold_warning | Number of unread mails where state is set to warning. | 1 |
threshold_critical | Number of unread mails where state is set to critical. | 10 |
interval | Update interval, in seconds. | 5 |
display_type | Which part of the maildir to count: "new" , "cur" , or "all" . | "new" |
Placeholder | Value | Type | Unit |
---|---|---|---|
icon | A static icon | Icon | - |
status | Number of emails | Number | - |
§Examples
[[block]]
block = "maildir"
interval = 60
inboxes = ["~/mail/local", "~/maildir/account1/*"]
threshold_warning = 1
threshold_critical = 10
display_type = "new"
§Icons Used
mail