|
|
@@ -34,7 +34,9 @@ pkill -RTMIN+12 i3blocks >/dev/null 2>&1 |
|
|
for account in "$HOME/.local/share/mail/"* |
|
|
for account in "$HOME/.local/share/mail/"* |
|
|
do |
|
|
do |
|
|
acc="$(echo "$account" | sed "s/.*\///")" |
|
|
acc="$(echo "$account" | sed "s/.*\///")" |
|
|
newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null | wc -l) |
|
|
|
|
|
|
|
|
folders="$account/INBOX/new/" |
|
|
|
|
|
[ "$(uname)" != "Darwin" ] && folders="$folders $account/Inbox/new/ $account/inbox/new/" |
|
|
|
|
|
newcount=$(find $folders -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2>/dev/null | wc -l) |
|
|
[ "$newcount" -gt "0" ] && notify "$acc" "$newcount" & |
|
|
[ "$newcount" -gt "0" ] && notify "$acc" "$newcount" & |
|
|
done |
|
|
done |
|
|
notmuch new 2>/dev/null |
|
|
notmuch new 2>/dev/null |
|
|
|