]> git.ekhem.eu.org Git - guix.git/commitdiff
[notmuch] Add refresh script.
authorJakub Czajka <jakub@ekhem.eu.org>
Fri, 2 Jun 2023 16:58:42 +0000 (18:58 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:24 +0000 (19:53 +0100)
conf/home/emacs.scm
email/.local/mail/.hooks/pre-new [new file with mode: 0755]

index 72e53021e31113347fe32957c7b50339cd595820..8581f1120bf3eebb3743a299dc3e63ad2feee2b3 100644 (file)
@@ -88,7 +88,8 @@
                   msmtp))
            (dotfiles
             (list "bash/.config/profile.d/50-notmuch.sh"
-                  "emacs/.config/emacs/conf/conf-email.el")))))
+                  "emacs/.config/emacs/conf/conf-email.el"
+                  "email/.local/mail/.hooks/pre-new")))))
 
 (define emacs-keys-service
   (service home-program-service-type
diff --git a/email/.local/mail/.hooks/pre-new b/email/.local/mail/.hooks/pre-new
new file mode 100755 (executable)
index 0000000..f1821f1
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Copyright (c) 2022-2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+notmuch search --output=files tag:deleted | xargs -l rm
+mbsync --config ~/.config/isync/mbsyncrc --all