From b2fe7885ebe2d9aaae74eeff6ad81f8d8fe2df73 Mon Sep 17 00:00:00 2001 From: Brett Eisenberg Date: Tue, 27 Aug 2019 08:32:04 -0700 Subject: [PATCH] optionally update notmuch when syncing mail --- group_vars/all | 1 + roles/mail/templates/mailsync.sh.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/group_vars/all b/group_vars/all index 3e1c9aa..d71c6ef 100644 --- a/group_vars/all +++ b/group_vars/all @@ -38,6 +38,7 @@ mail: sync_tool: isync sync_pim: True sync_taskwarrior: True + sync_notmuch: True sync_time: 5min sync_boot_delay: 2min sync_on: trusted diff --git a/roles/mail/templates/mailsync.sh.j2 b/roles/mail/templates/mailsync.sh.j2 index 16249eb..88e6e0e 100755 --- a/roles/mail/templates/mailsync.sh.j2 +++ b/roles/mail/templates/mailsync.sh.j2 @@ -18,6 +18,9 @@ then {% endif %} {% if mail.sync_taskwarrior %} task sync +{% endif %} +{% if mail.sync_notmuch %} + notmuch new {% endif %} exit $? fi