Re: notmuchsync: handling of the deleted tag

Subject: Re: notmuchsync: handling of the deleted tag

Date: Sun, 14 Nov 2010 17:23:57 -0800

To: Notmuch developer list

Cc:

From: Jeff Richards


On Sun, 14 Nov 2010 23:21:41 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:
> This one is a simple one-liner as of notmuch 0.4:
> > 
> >     notmuch search --output=files tag:deleted -print0 | xargs -0 rm
> 

Having just switched from notmuchsync the synchronizing power of 0.5 and
being as how I'm missing the pruning feature I gave this a try and found
that I ended up with rm complaining that the file name length being too
long or simply file not found.  Seems like the  
xargs -0 rm 
portion was choking as all the file names were being contcatenated.
Perhaps the null character line ending is missing?  At this point I
haven't investigated further.    

So for anyone else who is stuck adjusting the one liner like 
notmuch search --output=files tag:deleted -print0 | xargs -d '\n' rm

worked for me.

PS Thanks to Sebastian and Carl and everyone else who has built notmuch
I'm really enjoying using it! :)

Jeff


> Uhh, that is a neat line, and a neat trick. (is it on the emacstips page
> already? ;-))


> 
> Sebastian
Non-text part: application/pgp-signature
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

-- 
Jeff Richards
jrichards@revenuewire.com



Thread: