From 1df47e5b06eb68c5c3059e6b34f2536cad464c96 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 Oct 2012 18:35:34 +0200 Subject: Add offlineimap wrapper to ionice and trigger notmuch afterwards. --- bin/myofflineimap | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/myofflineimap 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" -- cgit v1.2.3