notmuch: Add "mbsync -a" to the pre-new hook

master
Pierre Neidhardt 2019-03-18 10:15:29 +01:00
parent 11ad331056
commit 1fc81eac21
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
mbsync -a

View File

@ -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")