mutt: mailnotify: Notify emails from gitlab

This commit is contained in:
Sanchayan Maity 2021-10-16 19:23:43 +05:30
parent fa81a1c107
commit e743090e85

View file

@ -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