]> git.cworth.org Git - notmuch-wiki/blobdiff - excluding.mdwn
complete sentence
[notmuch-wiki] / excluding.mdwn
index ef9b1a74ddfaa100e043386049edcea8c5b4a872..d7b030cf1db85b74c8681cdb3ec6d1732984e565 100644 (file)
@@ -48,7 +48,7 @@ be used to train a spam filter:
 
 It can also be used to purge mail files from disk:
 
-        $ notmuch search --format=text0 --output=files tag:deleted | xargs -0 rm
+        $ notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm
 
 Make sure you run "notmuch new" after the last command so the database
 becomes aware that the files have been removed and can remove the
@@ -63,14 +63,8 @@ procedure:
 
         $ notmuch config set search.exclude_tags deleted
 
-* Add a key binding to your favorite ui to add a "deleted" tag to
-  messages that you want to delete.  In [[emacs|emacstips]] that might
-  be:
-
-        (define-key notmuch-show-mode-map "d"
-          (lambda ()
-            (interactive)
-              (notmuch-show-tag "+deleted")))
+* In emacs MUA use keybinding `k d` to add a "deleted" tag to messages
+  that you want to delete.
 
 * And, finally, if you _really_ want the messages purged from disk,
   you can delete them manually with:
@@ -79,7 +73,7 @@ procedure:
 
 ## <span id="exclude">**killing threads**</span>
 
-In a [[hook|manpages/notmuch-hooks-5]]
+In a [hook](https://notmuchmail.org/doc/latest/man5/notmuch-hooks.html)
 
     notmuch tag +muted $(notmuch search --output=threads tag:muted)"