summaryrefslogtreecommitdiff
path: root/scripts/mail/mmm-cron
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mail/mmm-cron')
-rwxr-xr-xscripts/mail/mmm-cron5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mail/mmm-cron b/scripts/mail/mmm-cron
new file mode 100755
index 00000000..3c852fb7
--- /dev/null
+++ b/scripts/mail/mmm-cron
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# 'notmuch new' exits non-zero if ~/.nomovemymail exists, but we don't want to
+# get mail from crond if that's the only reason for the failure.
+[ -e ~/.nomovemymail ] || exec chronic nice ionice -c 3 notmuch new