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 5C7BA40DDCA for ; Mon, 15 Nov 2010 07:24:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 i7x8FH9HO210 for ; Mon, 15 Nov 2010 07:24:42 -0800 (PST) Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) by olra.theworths.org (Postfix) with ESMTP id 4A50B40DDC4 for ; Mon, 15 Nov 2010 07:24:42 -0800 (PST) Received: by wwe15 with SMTP id 15so256248wwe.2 for ; Mon, 15 Nov 2010 07:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Aucccnj9LnFjiimz9rlMzuIeY+anNh8XtHbSbxZDiJU=; b=HQny+8Hgwdg9F3vPEkyrAPp0oc0cIZDHstRVOue9nla3waaEhefn7bxTULYxIzjYUD UnmOwj2/851mnf6SOf817RsEXYIm4dpFWAQQPwyMpqpTNCzNV+NC6u0NMnCNZW3pjbR8 3bCxJCaOE6UXm9rnkkA+MVyL2P0TP7r6jtHGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ScMku1/BvkgNNkiKbuhQdhVWWwEiHa76CS27ijABDBOmHBARUCXvjNIbJlFp+xtI8n 2CFDL2osTvvOscvKh2xXUIGKAH2F75Rs+0HKPwWurppShw1vk1bc5AxZTOor9NOZcZX3 ECYhrLXf3R0ymYlccRS9iuErQEykizthTiaeE= MIME-Version: 1.0 Received: by 10.227.7.90 with SMTP id c26mr6337713wbc.83.1289834681398; Mon, 15 Nov 2010 07:24:41 -0800 (PST) Received: by 10.216.186.69 with HTTP; Mon, 15 Nov 2010 07:24:41 -0800 (PST) In-Reply-To: <87d3q7e19f.fsf@servo.finestructure.net> 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> <87d3q7e19f.fsf@servo.finestructure.net> Date: Mon, 15 Nov 2010 10:24:41 -0500 Message-ID: Subject: Re: notmuchsync: handling of the deleted tag From: servilio To: Jameson Rollins Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Notmuch developer list 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 15:24:54 -0000 On 14 November 2010 22:03, Jameson Rollins wro= te: [...] > I think the 'print0' might have been a mistake on Carl's part. =A0I don't > think that option is actually supported by notmuch. =A0In which case xarg= s > -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=3Dfiles tag:deleted -print0 | xargs -d '\n' rm > > This is working because the input stream is newline delimited. =A0So 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=3Dfiles tag:deleted | xargs -L1 rm Servilio