dotfiles/mutt/.mutt/mailnotify.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
436 B
Bash
Raw Normal View History

2016-03-07 17:31:28 +01:00
#!/bin/bash
# Without this pinentry-gtk does not get triggered to ask for GPG password.
export DISPLAY=:0
imapfilter
2016-03-07 17:31:28 +01:00
if [ -d "$HOME/Mail/sanchayan-net" ]; then
mbsync sanchayan-net
fi
if [ -d "$HOME/Mail/sanchayan-com" ]; then
mbsync sanchayan-com
fi
if [ -d "$HOME/Mail/fastmail" ]; then
mbsync fastmail
fi
2016-03-07 17:31:28 +01:00
if [ -d "$HOME/Mail/sanchayan" ]; then
mbsync gmail
2016-03-07 17:31:28 +01:00
fi
if [ -d "$HOME/Mail/asymptotic" ]; then
mbsync asymptotic
fi