]> git.cworth.org Git - notmuch-wiki/commit
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)
commitf7c13e2bb7479195e2b17332eaa40f999d546b0e
treeac8a991d777751fe12d3609031fe212936086630
parent2d09ddd1582255fa09f0763360645f46946ed7cd
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.
excluding.mdwn