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 6769B40DBDA for ; Sun, 14 Nov 2010 19:04:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 gIkqJ7ptopa6 for ; Sun, 14 Nov 2010 19:04:01 -0800 (PST) Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7]) by olra.theworths.org (Postfix) with ESMTP id 3F29C40DBC8 for ; Sun, 14 Nov 2010 19:04:01 -0800 (PST) Received: from servo.finestructure.net (cpe-74-66-82-137.nyc.res.rr.com [74.66.82.137]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by tarap.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id oAF33vbV020982 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 14 Nov 2010 22:03:59 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1PHpML-0003Zx-Hb; Sun, 14 Nov 2010 22:03:57 -0500 From: Jameson Rollins To: Jeff Richards , Notmuch developer list Subject: Re: notmuchsync: handling of the deleted tag In-Reply-To: <7nlj4vqt02.fsf@revenuewire.com> 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> <7nlj4vqt02.fsf@revenuewire.com> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sun, 14 Nov 2010 22:03:56 -0500 Message-ID: <87d3q7e19f.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7 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 03:04:12 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Sun, 14 Nov 2010 17:23:57 -0800, Jeff Richards wrote: > 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=20=20 > xargs -0 rm=20 > 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.=20=20=20=20 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 =2D0 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=20 > notmuch search --output=3Dfiles 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. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJM4KMcAAoJEO00zqvie6q8tkgP/3qXi6f5puQ1LP+esjac9MHn C58gtHu30fqntNM49W2T78lpmltsQnO8hVFV72tFUL8oF1WUygaFYh0M7SihEGpX TKZax9kWdfNpGS5zjtQ/qBDy6Xqf1QRRneEbfaxEKAHcsGa3OGbG8s+RRcTezPtg 9+ikzzmC2vr8Vfb6g7qvUqzYMVS2Xv/zKJ1dvmmc5nnTmzof5hTn8iTNLrgNpVgH FWRfRKL5xUIKN3kObyWKGpryEkqOW8mQ47tc/3fBI64fG8wYexZDO39wgO8uXUZL FJn+2wOWmR7IUxP7B+afl0hcwmFEmMZvkTcLc9o8gFnO5DpTArCdZBhsPEIRQ85H aCsV4qIw3OpvVOCjqjPxR2JwW59gD/VBCnddaNTaEK/kh0kgV24RH3y/J5MBnhWn Ym/RO+FU7C8W45j1bHNgFxuch06rEWiUdhaXZoofTnyNXudzIim91iNEXb8tETci rBnDl+KIiEXK/G0R/kpm89X6rgIr4AlMoJaIj1D9a+9AUOSJiP54d9TtdFr3esje B7SzGRlnjkQZBjBoGVityRdb42JVp1hCb9iqF7Y+EKVFmp2U61k1Dn1iVJ6zRYjS ywPIHp1TreCcp+i/2SGhHVeWE+MkWheIfS8euVoFE+vEPVjhKhjIqn8jlvy+sreR Ay8E2rP3CkorEUVA7E64 =TVbq -----END PGP SIGNATURE----- --=-=-=--