[PATCH] Have notmuch count default to showing the total.

Anthony Towns aj at erisian.com.au
Fri Apr 9 12:28:32 PDT 2010


On Fri, Apr 9, 2010 at 23:01, Sebastian Spaeth <Sebastian at sspaeth.de> wrote:
> On 2010-04-08, Mike Kelly wrote:
>> If no parameters are given to notmuch-count, or just '' or '*' are
>> given, return the total number of messages in the database.
> I know that cworth was concerned about this syntax on IRC as that would
> mean that "notmuch show" would have to spew out all your emails in order
> to remain consistent with the search term (he rather wanted to output a
> help text if no search term was given).

What's wrong with having them inconsistent in this one respect? [0]

$ notmuch count
96632
$ notmuch search
Error: notmuch search requires at least one search term.

...seems pretty logical behaviour to me?

Cheers,
aj

[0] Not much, afaics! [1]
[1] Man, what are the chances that will ever get old? [0]

-- 
Anthony Towns <aj at erisian.com.au>


More information about the notmuch mailing list