]> xn--ix-yja.es Git - alex.git/commitdiff
Do not run notmuch new when syncing, add lock
authoralex <alex@pdp7.net>
Sun, 16 Jun 2024 10:41:40 +0000 (10:41 +0000)
committeralexpdp7 <alex@corcoles.net>
Sun, 16 Jun 2024 10:42:44 +0000 (12:42 +0200)
scripts/p7s/mail/__init__.py

index 27183325cd6be5885f3afc933c240137388808c0..0bcbf33c4a6b874bc46ae33405ba21aa4cf0ad60 100644 (file)
@@ -26,7 +26,7 @@ def generate_config():
 
         [Service]
         Type=oneshot
-        ExecStart=/usr/bin/mbsync -qa ; /usr/bin/notmuch new
+        ExecStart=/usr/bin/touch /home/alex/Mail/.lock ; /usr/bin/mbsync -qa ; /usr/bin/rm -f /home/alex/Mail/.lock
         """).lstrip())
 
     (user_units / "mbsync.timer").write_text(textwrap.dedent("""