summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Orrù <maker@tumbolandia.net>2015-01-24 18:16:51 +0100
committerMichele Orrù <maker@tumbolandia.net>2015-01-24 18:16:51 +0100
commitf7c13e2bb7479195e2b17332eaa40f999d546b0e (patch)
treeac8a991d777751fe12d3609031fe212936086630
parent2d09ddd1582255fa09f0763360645f46946ed7cd (diff)
When removing mail files, use xargs -0 instead of -l to avoid whitespace errors.
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.
-rw-r--r--excluding.mdwn2
1 files changed, 1 insertions, 1 deletions
diff --git a/excluding.mdwn b/excluding.mdwn
index b783383..ef9b1a7 100644
--- a/excluding.mdwn
+++ b/excluding.mdwn
@@ -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