2024-10-21 16:57:10 -05:00
|
|
|
if [ "$(hostname)" = "localhost" ]; then
|
|
|
|
mbsync --config=$HOME/.config/isync/phone-config
|
|
|
|
else
|
|
|
|
mbsync --config=$HOME/.config/isync/config main
|
|
|
|
fi
|
|
|
|
|
2024-04-15 21:47:15 -05:00
|
|
|
vdirsyncer sync
|
|
|
|
rbw sync
|
|
|
|
|
|
|
|
# check if we have new mail, and if so, notify
|
|
|
|
new=$(ls ~/Mail/main/INBOX/new | wc -l)
|
|
|
|
if [ "$new" -gt 0 ]; then
|
|
|
|
inbox=$(ls ~/Mail/main/INBOX/cur | wc -l)
|
|
|
|
printf "%i new email(s); %i total in inbox" "$new" "$inbox" > ~/.cache/statusbar_notification
|
|
|
|
fi
|