notmuchsync: handling of the deleted tag
servilio
servilio at gmail.com
Mon Nov 15 07:24:41 PST 2010
On 14 November 2010 22:03, Jameson Rollins <jrollins at finestructure.net> wrote:
[...]
> I think the 'print0' might have been a mistake on Carl's part. I don't
> think that option is actually supported by notmuch. In which case xargs
> -0 isn't going to work as expected because there are no null characters
> in the input stream to use as delimiters.
>
>> So for anyone else who is stuck adjusting the one liner like
>> notmuch search --output=files tag:deleted -print0 | xargs -d '\n' rm
>
> This is working because the input stream is newline delimited. So I
> think the -print0 is confusing the issue.
And "xargs -L1 ..." will solve the issue in a nicer way. So the above would be:
notmuch search --output=files tag:deleted | xargs -L1 rm
Servilio
More information about the notmuch
mailing list