add force_sync script
authorMart Lubbers <mart@martlubbers.net>
Tue, 17 Apr 2018 05:46:35 +0000 (07:46 +0200)
committerMart Lubbers <mart@martlubbers.net>
Tue, 17 Apr 2018 05:46:35 +0000 (07:46 +0200)
email/.mutt/force_sync.sh [new file with mode: 0755]

diff --git a/email/.mutt/force_sync.sh b/email/.mutt/force_sync.sh
new file mode 100755 (executable)
index 0000000..e08a3ac
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+if pidof -x offlineimap
+then
+       kill -10 "$(pidof -x offlineimap)"
+else
+       offlineimap -u quiet -o
+fi