mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
14 lines
374 B
Bash
Executable File
14 lines
374 B
Bash
Executable File
#!/bin/zsh
|
|
notmuch new
|
|
notmuch tag +inbox -new -- tag:new
|
|
notmuch tag -new -inbox +sent -- from:alrayyes@gmail.com or from:ryan@andthensome.nl
|
|
|
|
ACCOUNTS=( "gmail" "andthensome")
|
|
for ACCOUNT in "${ACCOUNTS[@]}"
|
|
do
|
|
NEWDIRS=$(ls ~/mail/$ACCOUNT/inbox/new/ | wc -l)
|
|
if [ ! "$NEWDIRS" -eq "0" ]; then
|
|
notify-send "New Mails ${ACCOUNT}" "$NEWDIRS" -i mail-message-new
|
|
fi
|
|
done
|