Fix eww-fcitx5-toggle for offlineimap

This commit is contained in:
2025-10-14 02:27:02 -07:00
parent e0dad7f7dd
commit fa6c2c5e9b

View File

@ -5,7 +5,7 @@ if [[ "${1}" == '-g' ]]; then
greather_than_zero=1
fi
lines=(${(f)"$(mu find '(maildir:/protonmail/Inbox or maildir:/ucsc-gmail/Inbox) AND flag:unread' 2>/dev/null)"})
lines=(${(f)"$(mu find '(maildir:/protonmail/INBOX or maildir:/ucsc-gmail/INBOX) AND flag:unread' 2>/dev/null)"})
if [[ ${#lines} > 0 ]] || ! (( greather_than_zero )); then
printf '%d' "${#lines}"
fi