Re: [notmuch] A few patches
authorMike Kelly <pioto@pioto.org>
Tue, 2 Mar 2010 03:54:50 +0000 (22:54 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:19 +0000 (09:36 -0800)
e4/b9869f183ceb2f21ddb8771012bf65026732df [new file with mode: 0644]

diff --git a/e4/b9869f183ceb2f21ddb8771012bf65026732df b/e4/b9869f183ceb2f21ddb8771012bf65026732df
new file mode 100644 (file)
index 0000000..52cc62d
--- /dev/null
@@ -0,0 +1,130 @@
+Return-Path: <pioto@pioto.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 62E74431FBD\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Mar 2010 19:55:10 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.092\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.092 tagged_above=-999 required=5 tests=[AWL=0.507,\r
+       BAYES_00=-2.599] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id HTGDCo0wkNLd for <notmuch@notmuchmail.org>;\r
+       Mon,  1 Mar 2010 19:55:09 -0800 (PST)\r
+Received: from everglades.pioto.org (everglades.pioto.org [207.192.69.249])\r
+       by olra.theworths.org (Postfix) with ESMTP id 575C5431FAE\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Mar 2010 19:55:09 -0800 (PST)\r
+Received: from aether.home.pioto.org\r
+       (pool-96-236-149-110.pitbpa.fios.verizon.net [96.236.149.110])\r
+       (Authenticated sender: pioto)\r
+       by everglades.pioto.org (Postfix) with ESMTPSA id 63C5A160A29\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Mar 2010 22:54:57 -0500 (EST)\r
+Date: Mon, 1 Mar 2010 22:54:50 -0500\r
+From: Mike Kelly <pioto@pioto.org>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <20100301225450.10bdb8a4@aether.home.pioto.org>\r
+In-Reply-To: <87aausi3ry.fsf@SSpaeth.de>\r
+References: <20100121204201.1C82764A0E@aether.pioto.org>\r
+       <87tyt3u7er.fsf@yoom.home.cworth.org>\r
+       <87sk8n0xt1.fsf@aw.hh.sledj.net> <87aausi3ry.fsf@SSpaeth.de>\r
+X-Mailer: Claws Mail 3.7.4 (GTK+ 2.18.5; x86_64-pc-linux-gnu)\r
+Mime-Version: 1.0\r
+Content-Type: multipart/signed; micalg=PGP-SHA1;\r
+       boundary="Sig_/cMarcJhLJp9bWdy8Ih4NMQm";\r
+       protocol="application/pgp-signature"\r
+Subject: Re: [notmuch] A few patches\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 02 Mar 2010 03:55:10 -0000\r
+\r
+--Sig_/cMarcJhLJp9bWdy8Ih4NMQm\r
+Content-Type: multipart/mixed; boundary="MP_/mum+30aW3mXxvzKoNwzfM2P"\r
+\r
+--MP_/mum+30aW3mXxvzKoNwzfM2P\r
+Content-Type: text/plain; charset=US-ASCII\r
+Content-Transfer-Encoding: quoted-printable\r
+Content-Disposition: inline\r
+\r
+On Mon, 01 Mar 2010 14:13:05 +0100\r
+"Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:\r
+\r
+> > > to count everything. Anyone have a better option for what the\r
+> > > give-me-everything syntax should be?\r
+> >=20\r
+> > notmuch count ''\r
+> >=20\r
+> > The search patterns limit the matched messages/folders. An empty\r
+> > pattern should match everything.\r
+>=20\r
+> I agree that '' should work, but then I would expect to have '*' work\r
+> as well. Is there a reason not to have both at the same time? Both\r
+> make sense.\r
+\r
+Try out this patch. It works both ways.\r
+\r
+--=20\r
+Mike Kelly\r
+\r
+\r
+--MP_/mum+30aW3mXxvzKoNwzfM2P\r
+Content-Type: text/x-patch\r
+Content-Transfer-Encoding: quoted-printable\r
+Content-Disposition: attachment;\r
+ filename=0001-Support-notmuch-count-with-no-args-or.patch\r
+\r
+=46rom 861a52ecaf87da6d95aabad05fd4ed3a2609a246 Mon Sep 17 00:00:00 2001\r
+From: Mike Kelly <pioto@pioto.org>\r
+Date: Mon, 1 Mar 2010 22:51:44 -0500\r
+Subject: [PATCH] Support notmuch-count with no args, '', or '*'\r
+\r
+All of these will return the total count of messages.\r
+---\r
+ notmuch-count.c |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/notmuch-count.c b/notmuch-count.c\r
+index cc84a69..97242ab 100644\r
+--- a/notmuch-count.c\r
++++ b/notmuch-count.c\r
+@@ -90,7 +90,7 @@ notmuch_count_command (void *ctx, int argc, char *argv[])\r
+       fprintf (stderr, "Out of memory.\n");\r
+       return 1;\r
+     }\r
+-    if (*query_str =3D=3D '\0') {\r
++    if (*query_str =3D=3D '\0' || (*query_str =3D=3D '*' && *(query_str+1)=\r
+ =3D=3D '\0')) {\r
+       query_str =3D talloc_strdup (ctx, "");\r
+     }\r
+=20\r
+--=20\r
+1.7.0.1\r
+\r
+\r
+--MP_/mum+30aW3mXxvzKoNwzfM2P--\r
+\r
+--Sig_/cMarcJhLJp9bWdy8Ih4NMQm\r
+Content-Type: application/pgp-signature; name=signature.asc\r
+Content-Disposition: attachment; filename=signature.asc\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.14 (GNU/Linux)\r
+\r
+iEYEARECAAYFAkuMjAoACgkQokMzJ47YCzqZQwCeMxvM+MfyvJ3tI4o+thWEWgjy\r
+OYMAn0UqsiHgEvcpOd3E0nFdJWR+l5A4\r
+=tTm9\r
+-----END PGP SIGNATURE-----\r
+\r
+--Sig_/cMarcJhLJp9bWdy8Ih4NMQm--\r