mutt: mailnotify: Notify emails from gitlab
This commit is contained in:
parent
fa81a1c107
commit
e743090e85
1 changed files with 4 additions and 0 deletions
|
@ -12,9 +12,13 @@ imapfilter -c ~/.imapfilter/config.lua
|
|||
if [ -d "$HOME/Mail/fastmail" ]; then
|
||||
mbsync fastmail
|
||||
fastmail_inbox=$(($(find ~/Mail/fastmail/Inbox/new | wc -l)-1))
|
||||
gitlab_inbox=$(($(find ~/Mail/fastmail/FreedesktopGitlab/new | wc -l)-1))
|
||||
if [ "$fastmail_inbox" -gt 0 ]; then
|
||||
notify-send "You have $fastmail_inbox new mails in fastmail inbox"
|
||||
fi
|
||||
if [ "$gitlab_inbox" -gt 0 ]; then
|
||||
notify-send "You have $gitlab_inbox new mails in fastmail gitlab inbox"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/Mail/sanchayan" ]; then
|
||||
|
|
Loading…
Reference in a new issue