From 1fc81eac211f37a02d11634f45826e8cdbb15d70 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 18 Mar 2019 10:15:29 +0100 Subject: [PATCH] notmuch: Add "mbsync -a" to the pre-new hook --- .cache/mail/.notmuch/hooks/pre-new | 2 ++ .config/cron/job.guile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100755 .cache/mail/.notmuch/hooks/pre-new diff --git a/.cache/mail/.notmuch/hooks/pre-new b/.cache/mail/.notmuch/hooks/pre-new new file mode 100755 index 00000000..85f14c79 --- /dev/null +++ b/.cache/mail/.notmuch/hooks/pre-new @@ -0,0 +1,2 @@ +#!/bin/sh +mbsync -a diff --git a/.config/cron/job.guile b/.config/cron/job.guile index 86beb6fd..baa5e818 100644 --- a/.config/cron/job.guile +++ b/.config/cron/job.guile @@ -21,6 +21,5 @@ (job '(next-hour (range 0 24 3)) "updatedb-local") (job '(next-minute (range 0 60 15)) - '(begin (system* "mbsync" "-a") - (system* "notmuch" "new")) + '(system* "notmuch" "new") ; Email is sync'ed from a pre-new hook. "mail")