Comments
Patch
From 861a52ecaf87da6d95aabad05fd4ed3a2609a246 Mon Sep 17 00:00:00 2001
From: Mike Kelly <pioto@pioto.org>
Date: Mon, 1 Mar 2010 22:51:44 -0500
Subject: [PATCH] Support notmuch-count with no args, '', or '*'
All of these will return the total count of messages.
---
notmuch-count.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
@@ -90,7 +90,7 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
fprintf (stderr, "Out of memory.\n");
return 1;
}
- if (*query_str == '\0') {
+ if (*query_str == '\0' || (*query_str == '*' && *(query_str+1) == '\0')) {
query_str = talloc_strdup (ctx, "");
}
--
1.7.0.1