#!/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