dotfiles/scripts/.local/share/scripts/mail-sync

14 lines
196 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: mail-sync <account name>"
exit 1
fi
mbsync "$1"
if pgrep -f 'mu server'; then
emacsclient -e '(mu4e-update-index)'
else
mu index --lazy-check
fi