From 0d925de7160c14ed25720e77c3b96e26503f04e0 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 14 Aug 2024 11:26:37 +0200 Subject: [PATCH] check mail composition before splitting outbox --- services/mailsync/run | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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