From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.63.8 with SMTP id l8cs103688fga; Thu, 4 Mar 2010 10:35:00 -0800 (PST) Received: by 10.224.29.75 with SMTP id p11mr1417333qac.167.1267727696218; Thu, 04 Mar 2010 10:34:56 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 6si612958qwk.52.2010.03.04.10.34.55; Thu, 04 Mar 2010 10:34:56 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 6A129158806E; Thu, 4 Mar 2010 13:34:55 -0500 (EST) X-Greylist: delayed 579 seconds by postgrey-1.31 at rubyforge.org; Thu, 04 Mar 2010 13:34:51 EST Received: from olra.theworths.org (u15218177.onlinehome-server.com [82.165.184.25]) by rubyforge.org (Postfix) with ESMTP id CD9CF185830A for ; Thu, 4 Mar 2010 13:34:50 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 13672431FBC; Thu, 4 Mar 2010 10:25:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 V-+ax+aCDsJf; Thu, 4 Mar 2010 10:25:18 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6090C431FAE; Thu, 4 Mar 2010 10:25:18 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id EF48625427B; Thu, 4 Mar 2010 10:25:06 -0800 (PST) From: Carl Worth To: Nicolas Pouillard , Rich Lane , sup-devel In-Reply-To: <4b8fb14f.0702d00a.5427.ffffe469@mx.google.com> References: <1267687531-sup-5689@zyrg.net> <4b8fb14f.0702d00a.5427.ffffe469@mx.google.com> Date: Thu, 04 Mar 2010 10:25:06 -0800 Message-ID: <87bpf4eygt.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Subject: Re: [sup-devel] now in next: sup-cmd X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0858251951==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============0858251951== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 04 Mar 2010 05:10:39 -0800 (PST), Nicolas Pouillard wrote: > > sup-cmd count 'is:inbox' > > sup-cmd query --offset 10 --limit 5 'is:unread' > > sup-cmd label --add-labels 'bugs' --remove-labels 'inbox' 'is:inbox AND= from:bugzilla' > > sup-cmd add --labels 'sent' < email >=20 > This is great! >=20 > BTW is there any hope to reach a kind of concensus of a nice CLI API with > notmuch people? It seems to me, at least, like that would be a worthwhile effort. I still consider the notmuch UI young enough that it's still quite flexible. And I'm here on the sup list if we want to talk here. For reference, the rough equivalent of the above commands in notmuch would be (with footnotes where things don't match exactly): notmuch count 'tag:inbox' notmuch search 'tag:unread' [*] notmuch tag +bugs -inbox 'tag:inbox AND from:bugzilla' notmuch new [**] So, I obviously switched from "label" to "tag" when I moved from sup to notmuch. But I do like the "is:" prefix---I can easily see adding that at least. =2DCarl [*] Notmuch currently doesn't have an equivalent of --offset and --limit but did have --first and --max-threads for a while, (and we'll probably be adding the same feature back again). The names of "offset" and "limit" sound good to me. [**] "notmuch new" is certainly only a very poor approximation of "sup-cmd add". The notmuch cli does not currently have any way to add an explicit file, (instead, "notmuch new" simply finds all new, renamed, and deleted files within the mail store). By the way, what's the semantic for "sup-cmd add" when it accepts a message on stdin? How is the message content every returned later? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLj/sC6JDdNq8qSWgRArbNAJoDfa8dcVMtNsrS2g6c+fY+Y4TCLACcDh+s q/kuov7kum1Z/9SfhMweqmo= =kN0e -----END PGP SIGNATURE----- --=-=-=-- --===============0858251951== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============0858251951==--