dwmblocks/scripts/dwmblocks-mu4e

4 lines
180 B
Bash
Executable File

#!/usr/bin/env zsh
let message_count="$(mu find flag:unread AND maildir:/protonmail/Inbox 2>/dev/null | wc -l)"
(( "${message_count}" > 0 )) && printf ' %s' "${message_count}"