[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-devel] now in next: sup-cmd
On Thu, 04 Mar 2010 10:25:06 -0800, Carl Worth <cworth@cworth.org> wrote:
> On Thu, 04 Mar 2010 05:10:39 -0800 (PST), Nicolas Pouillard <nicolas.pouillard@gmail.com> 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
> >
> > This is great!
> >
> > 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 [**]
About the sup-cmd label vs notmuch tag commands, I prefer the notmuch syntax.
Moreover an alias could be added to both to unify between label and tag.
> 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.
Yes please add the is: prefix too, tag: was added to sup.
Regards,
--
Nicolas Pouillard
http://nicolaspouillard.fr
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel