]> git.cworth.org Git - notmuch-wiki/blobdiff - excluding.mdwn
News for release 0.38.3
[notmuch-wiki] / excluding.mdwn
index 5527444da5779cfa65fa4a596ce429955684c991..a75020265edc6284412935959090503c2b930e40 100644 (file)
@@ -34,7 +34,7 @@ This will find messages from "foo" with the tag "spam", even though
 Notmuch makes it very easy to access the underlying mail files
 associated with specific search terms using the "file" output format
 of notmuch search.  To find all message files associated with the tag
 Notmuch makes it very easy to access the underlying mail files
 associated with specific search terms using the "file" output format
 of notmuch search.  To find all message files associated with the tag
-"foo" rung:
+"foo" run:
 
         $ notmuch search --output=files tag:foo
 
 
         $ notmuch search --output=files tag:foo
 
@@ -48,7 +48,7 @@ be used to train a spam filter:
 
 It can also be used to purge mail files from disk:
 
 
 It can also be used to purge mail files from disk:
 
-        $ notmuch search --output=files tag:deleted | xargs -l 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
 
 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
 
 
         $ 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:
 
 * And, finally, if you _really_ want the messages purged from disk,
   you can delete them manually with:
@@ -79,9 +73,9 @@ procedure:
 
 ## <span id="exclude">**killing threads**</span>
 
 
 ## <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)"
+    notmuch tag +muted $(notmuch search --output=threads tag:muted)
 
 
-New messages in the thread get the muted tag. Make muted an excluded tag.
-To kill a thread, tag it with muted, run notmuch new.
+New messages in the thread get the muted tag.  Make muted an excluded tag (see
+above).  To kill a thread, tag it with muted, run notmuch new.