summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-10-07 18:35:34 +0200
committerJonas Smedegaard <dr@jones.dk>2012-10-07 18:35:34 +0200
commit1df47e5b06eb68c5c3059e6b34f2536cad464c96 (patch)
treea6643fa216c3e388b36d70b130c10f38504b30dd
parent8ecebca67bc62144e46df1a919a0fdd033b7fdbb (diff)
Add offlineimap wrapper to ionice and trigger notmuch afterwards.
-rwxr-xr-xbin/myofflineimap8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/myofflineimap b/bin/myofflineimap
new file mode 100755
index 0000000..daa50c7
--- /dev/null
+++ b/bin/myofflineimap
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+accounts="$1"
+[ "fast" != "$accounts" ] || accounts=jones,bb,db,lb,lab,bu,hb,dgih,debian
+
+ionice -c 3 chrt --idle 0 /bin/sh -c "offlineimap -qo ${accounts:+-a $accounts}"
+
+ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new"