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.
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