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

2010-04-10 Thread Anthony Towns
On Fri, Apr 9, 2010 at 23:01, Sebastian Spaeth 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 >

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

2010-04-09 Thread Carl Worth
On Thu, 8 Apr 2010 15:39:38 -0400, 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. How much syntax should count require to print all messages? [*] I've pushed this out now, along with some follo

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

2010-04-09 Thread Carl Worth
On Thu, 8 Apr 2010 15:39:38 -0400, 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. How much syntax should count require to print all messages? [*] I've pushed this out now, along with some follo

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

2010-04-09 Thread Carl Worth
On Fri, 09 Apr 2010 10:19:47 -0700, Dirk Hohndel wrote: > On Fri, 09 Apr 2010 15:01:35 +0200, "Sebastian Spaeth" > wrote: > > 1) I often want to know how many mails are in my db. "notmuch count" or > > "notmuch count *" is the intuitive syntax I would use for that. Right > > now there is no way

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

2010-04-09 Thread Carl Worth
On Fri, 09 Apr 2010 10:19:47 -0700, Dirk Hohndel wrote: > On Fri, 09 Apr 2010 15:01:35 +0200, "Sebastian Spaeth" SSpaeth.de> wrote: > > 1) I often want to know how many mails are in my db. "notmuch count" or > > "notmuch count *" is the intuitive syntax I would use for that. Right > > now there

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

2010-04-09 Thread Mike Kelly
On Sat, Apr 10, 2010 at 05:28:32AM +1000, Anthony Towns wrote: > What's wrong with having them inconsistent in this one respect? > > $ notmuch count > 96632 > $ notmuch search > Error: notmuch search requires at least one search term. > > ...seems pretty logical behaviour to me? My thoughts exac

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

2010-04-09 Thread Jameson Rollins
On Sat, 10 Apr 2010 05:28:32 +1000, Anthony Towns wrote: > 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. This seems very logical and intuitive behavior in my opinion.

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

2010-04-09 Thread Sebastian Spaeth
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 email

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

2010-04-09 Thread Mark Anderson
On Fri, 9 Apr 2010 14:28:32 -0500, Anthony Towns wrote: > [0] Not much, afaics! [1] > [1] Man, what are the chances that will ever get old? [0] Thanks AJ, I like it! -Mark

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

2010-04-09 Thread Mike Kelly
On Sat, Apr 10, 2010 at 05:28:32AM +1000, Anthony Towns wrote: > What's wrong with having them inconsistent in this one respect? > > $ notmuch count > 96632 > $ notmuch search > Error: notmuch search requires at least one search term. > > ...seems pretty logical behaviour to me? My thoughts exac

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

2010-04-09 Thread Jameson Rollins
On Sat, 10 Apr 2010 05:28:32 +1000, Anthony Towns wrote: > 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. This seems very logical and intuitive behavior in my opinion.

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

2010-04-09 Thread Mark Anderson
On Fri, 9 Apr 2010 14:28:32 -0500, Anthony Towns wrote: > [0] Not much, afaics! [1] > [1] Man, what are the chances that will ever get old? [0] Thanks AJ, I like it! -Mark ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman

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

2010-04-09 Thread Anthony Towns
On Fri, Apr 9, 2010 at 23:01, Sebastian Spaeth 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 >

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

2010-04-09 Thread Dirk Hohndel
On Fri, 09 Apr 2010 15:01:35 +0200, "Sebastian Spaeth" 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

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

2010-04-09 Thread Dirk Hohndel
On Fri, 09 Apr 2010 15:01:35 +0200, "Sebastian Spaeth" 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

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

2010-04-09 Thread Sebastian Spaeth
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 email

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

2010-04-08 Thread Mike Kelly
If no parameters are given to notmuch-count, or just '' or '*' are given, return the total number of messages in the database. update notmuch count help --- notmuch-count.c |5 ++--- notmuch.c |4 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/notmuch-count.c b/

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

2010-04-08 Thread Mike Kelly
If no parameters are given to notmuch-count, or just '' or '*' are given, return the total number of messages in the database. update notmuch count help --- notmuch-count.c |5 ++--- notmuch.c |4 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/notmuch-count.c b/