From: Jeff Richards Date: Mon, 15 Nov 2010 01:23:57 +0000 (+1600) Subject: Re: notmuchsync: handling of the deleted tag X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4517dd07047e51e267168f42e16561aece4f2450;p=notmuch-archives.git Re: notmuchsync: handling of the deleted tag --- diff --git a/dc/d48166e8d83e48531e576c5930c935974d5b70 b/dc/d48166e8d83e48531e576c5930c935974d5b70 new file mode 100644 index 000000000..384df9a22 --- /dev/null +++ b/dc/d48166e8d83e48531e576c5930c935974d5b70 @@ -0,0 +1,106 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 144FC40DBC0 + for ; Sun, 14 Nov 2010 17:33:50 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.9 +X-Spam-Level: +X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 + tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id hPuWnkukrohA for ; + Sun, 14 Nov 2010 17:33:36 -0800 (PST) +X-Greylist: delayed 577 seconds by postgrey-1.32 at olra; + Sun, 14 Nov 2010 17:33:36 PST +Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) + by olra.theworths.org (Postfix) with ESMTP id 93A0040DDE7 + for ; Sun, 14 Nov 2010 17:33:36 -0800 (PST) +Received: from pd6ml1no-ssvc.prod.shaw.ca ([10.0.153.160]) + by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 14 Nov 2010 18:23:57 -0700 +X-Cloudmark-SP-Filtered: true +X-Cloudmark-SP-Result: v=1.1 cv=sma64emKALigICJU+V2L7RL3kPAolu7RCFSKDgo279k= + c=1 sm=1 + a=-tKy-MdvZ4YA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 + a=fZIboY/cEU6l/H7GC6ozQQ==:17 a=7343-z1_AAAA:8 a=RSj82B_RAAAA:8 + a=bNqfXUKSxoebeDiaU3sA:9 a=lT31I-HbELEZxjlWurHYGNvwOl4A:4 + a=CjuIK1q_8ugA:10 + a=WuyvyjOq3N8A:10 a=0c-eHkXYtrgA:10 a=Z9YHovozsoYA:10 + a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 +Received: from unknown (HELO localhost) ([96.50.110.35]) + by pd6ml1no-dmz.prod.shaw.ca with ESMTP; 14 Nov 2010 18:23:57 -0700 +From: Jeff Richards +To: Notmuch developer list +Subject: Re: notmuchsync: handling of the deleted tag +In-Reply-To: <87vd3z7dhm.fsf@SSpaeth.de> +References: <87bp7vewa5.fsf@raven.defaultvalue.org> + <87mxrcsb8a.fsf@SSpaeth.de> <87r5gnomt2.fsf@raven.defaultvalue.org> + <87hbfnmiux.fsf@yoom.home.cworth.org> <87oc9vf17n.fsf@SSpaeth.de> + <87pqua82os.fsf@yoom.home.cworth.org> + <87vd3z7dhm.fsf@SSpaeth.de> +User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 + (i486-pc-linux-gnu) +Date: Sun, 14 Nov 2010 17:23:57 -0800 +Message-ID: <7nlj4vqt02.fsf@revenuewire.com> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 15 Nov 2010 01:33:50 -0000 + +On Sun, 14 Nov 2010 23:21:41 +0100, Sebastian Spaeth 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 + +