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 21B7540D152 for ; Fri, 29 Oct 2010 00:13:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.99 X-Spam-Level: X-Spam-Status: No, score=-1.99 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 8nyPG91ADwlh for ; Fri, 29 Oct 2010 00:13:08 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by olra.theworths.org (Postfix) with ESMTP id A08A540D149 for ; Fri, 29 Oct 2010 00:13:08 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTP id D63C74B0060 for ; Fri, 29 Oct 2010 00:13:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=Og1exyQwQ7dEaaMJWC2bS/kmp9C p/YwHngEocNwEs9pn72e3bQOVlAuSOCPJSDHgPP/FPCotHgzQcfmIIc9L82fezxp 10V0/Cv5kOZd94rx7gzEyIDJQgXXos7eKdirG/m9lIpQtYZzHBm73ALh62oDJ2G5 t3XAPTuKaRLLsp0Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=YB+N0s0HHLBTRv+QdDPSYzhVAs8=; b=E njszdG1OuWrfJ3e03+qPVkdI/ziubIDN9ODflQ44Xl9H0GS5wcYyeuEnytHY57Ru V5TkNwljWLn7HzrHZwMBHrLkqRBcTF/Q1YAfjehuS4S/INfkNI7/DP7gGgkUg58R Yvh7IHpGTVjhnMOUsfB3ItL6IcsgjxvGafunObHqGU= Received: from spaetzbook.sspaeth.de (unknown [84.55.209.24]) (Authenticated sender: fax@sspaeth.de) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPA id 7AD814B0058 for ; Fri, 29 Oct 2010 00:13:06 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Fri, 29 Oct 2010 09:13:04 +0200 From: Sebastian Spaeth To: notmuch@notmuchmail.org Subject: Re: Notmuch scripters rejoice! New "notmuch search --output=(...)" In-Reply-To: <8762wmglxe.fsf@yoom.home.cworth.org> References: <8762wmglxe.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.3.1-127-g6d93d20 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Fri, 29 Oct 2010 09:13:03 +0200 Message-ID: <878w1h5v5s.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Fri, 29 Oct 2010 07:13:19 -0000 --=-=-= On Thu, 28 Oct 2010 12:24:45 -0700, Carl Worth wrote: > --output=(summary|threads|messages|files|tags) > for spamfile in $(notmuch search tag:spam); do > rm $spamfile > done Wow, that is very useful thanks. This will creating scripts much easier indeed. As for count, I would leave that in, it's seems much nicer than a |wc -l Thanks! Keep the good stuff coming. Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkzKdAAACgkQVYX1jMgnoGKNaQCcDxp6Y3A9HvnCDC3vTyr31/31 YEcAnRrb4aJ9Ms3KyLczJh1hP+yk8EcZ =nq6y -----END PGP SIGNATURE----- --=-=-=--