diff --git a/services/mailsync/run b/services/mailsync/run index a458fc9..23fb0fc 100755 --- a/services/mailsync/run +++ b/services/mailsync/run @@ -5,6 +5,12 @@ export DISPLAY=":0" set -e +# Don't sync mails while composing +! pgrep -f mcom > /dev/null +! pgrep -f mfwd > /dev/null +! pgrep -f mbnc > /dev/null +! pgrep -f mrep > /dev/null + # Split outbox emails mlist -d /data/mail/outbox | mpick -t 'from =~~ "posteo"' | mflag -F | mrefile /data/mail/posteo/Sent @@ -14,12 +20,6 @@ ip route ls | grep -q '.' # check if the gpg-agent is running pgrep gpg-agent > /dev/null -# Don't sync mails while composing -! pgrep -f mcom > /dev/null -! pgrep -f mfwd > /dev/null -! pgrep -f mbnc > /dev/null -! pgrep -f mrep > /dev/null - # Sync email mbsync -a -q || true