dotfiles/mutt/.mutt/mailnotify.sh
Sanchayan Maity ecf9bb731e
mutt: mailnotify: Drop all notifications
Getting rid of the desire to check mails immediately. May
be we should also rename this now as we only sync mails
here but it is fine for now.
2024-11-16 12:39:22 +05:30

26 lines
436 B
Bash
Executable file

#!/bin/bash
# Without this pinentry-gtk does not get triggered to ask for GPG password.
export DISPLAY=:0
imapfilter
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
if [ -d "$HOME/Mail/sanchayan" ]; then
mbsync gmail
fi
if [ -d "$HOME/Mail/asymptotic" ]; then
mbsync asymptotic
fi