[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 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 [**]

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.

-Carl

[*] 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?

Attachment: pgp37pUrYkXLy.pgp
Description: PGP signature

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel