X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=excluding.mdwn;h=4e54a85465fc3fa3ef80c73ef6c204ea4e076734;hb=87440cbc1d12fc3a860289b11d7b850b538dcf3d;hp=5527444da5779cfa65fa4a596ce429955684c991;hpb=8b6746d22f18e39db67f878267cc8415eef9559a;p=notmuch-wiki diff --git a/excluding.mdwn b/excluding.mdwn index 5527444..4e54a85 100644 --- a/excluding.mdwn +++ b/excluding.mdwn @@ -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 -"foo" rung: +"foo" run: $ 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: - $ 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