2016-03-07 17:31:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-02-11 09:46:19 +01:00
|
|
|
export DISPLAY=:0
|
|
|
|
|
2020-01-06 06:25:00 +01:00
|
|
|
imapfilter -c ~/.imapfilter/config.lua
|
2016-03-07 17:31:28 +01:00
|
|
|
|
2021-02-11 09:46:19 +01:00
|
|
|
if [ -d "$HOME/Mail/fastmail" ]; then
|
|
|
|
mbsync fastmail
|
|
|
|
fastmail_inbox=$(find ~/Mail/fastmail/Inbox/new | wc -l)
|
|
|
|
if [ "$fastmail_inbox" -gt 1 ]; then
|
|
|
|
notify-send "You have $fastmail_inbox new mails in fastmail inbox"
|
|
|
|
fi
|
|
|
|
fi
|
2016-03-07 17:31:28 +01:00
|
|
|
|
2021-02-11 09:46:19 +01:00
|
|
|
if [ -d "$HOME/Mail/sanchayan" ]; then
|
|
|
|
mbsync gmail
|
|
|
|
gmail_inbox=$(find ~/Mail/sanchayan/Inbox/new | wc -l)
|
|
|
|
if [ "$gmail_inbox" -gt 1 ]; then
|
|
|
|
notify-send "You have $gmail_inbox new mails in gmail inbox"
|
|
|
|
fi
|
2016-03-07 17:31:28 +01:00
|
|
|
fi
|
2019-12-31 09:48:38 +01:00
|
|
|
|
2021-02-11 09:46:19 +01:00
|
|
|
if [ -d "$HOME/Mail/asymptotic" ]; then
|
|
|
|
mbsync asymptotic
|
|
|
|
asymptotic_inbox=$(find ~/Mail/asymptotic/Inbox/new | wc -l)
|
|
|
|
if [ "$asymptotic_inbox" -gt 1 ]; then
|
|
|
|
notify-send "You have $asymptotic_inbox new mails in asymptotic inbox"
|
|
|
|
fi
|
2020-01-06 08:05:17 +01:00
|
|
|
fi
|
2021-02-11 09:46:19 +01:00
|
|
|
|
|
|
|
notmuch new
|