]> git.cworth.org Git - notmuch-wiki/commitdiff
When removing mail files, use xargs -0 instead of -l to avoid whitespace errors.
authorMichele Orrù <maker@tumbolandia.net>
Sat, 24 Jan 2015 17:16:51 +0000 (18:16 +0100)
committerMichele Orrù <maker@tumbolandia.net>
Sat, 24 Jan 2015 17:16:51 +0000 (18:16 +0100)
Replace
"$ notmuch search --output=files tag:deleted | xargs -l rm" with
"notmuch … --format=text0 --output=files … | xargs -0"
It might be useful for people having spaces inside their imap folder names
(e.g. "Sent mail" in gmail), nonetheless that's simply wrong to use spaces as
separators according to unix standard iirc.

excluding.mdwn

index b783383264cc4062ee38cfb870ce00e4ca7c8ea1..ef9b1a74ddfaa100e043386049edcea8c5b4a872 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 --output=files tag:deleted | xargs -l rm
+        $ notmuch search --format=text0 --output=files tag:deleted | xargs -0 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