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

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

Date: Sat, 10 Apr 2010 05:28:32 +1000

To: notmuch@notmuchmail.org

Cc:

From: Anthony Towns


On Fri, Apr 9, 2010 at 23:01, Sebastian Spaeth <Sebastian@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@erisian.com.au>

Thread: