[mail] fix: do not display drafts count in statusbar
This commit is contained in:
parent
069ac13a3b
commit
1249c0099b
@ -13,7 +13,7 @@
|
|||||||
unread=""
|
unread=""
|
||||||
for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
|
for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
|
||||||
do
|
do
|
||||||
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc -path */new/* -type f | grep -iv "trash" | wc -l 2>/dev/null)"
|
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc -path */new/* -type f | grep -iv -e "trash" -e "drafts" | wc -l 2>/dev/null)"
|
||||||
if [ $new -gt 0 ]; then
|
if [ $new -gt 0 ]; then
|
||||||
box=""
|
box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box=""
|
||||||
|
Reference in New Issue
Block a user