Re: [PATCH 1/3] test: add functions to count how much times notmuch was called
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 29 Nov 2011 14:40:16 +0000 (09:40 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:30 +0000 (09:40 -0800)
d8/dc2670a587a20d368f3f255a4247922a1a509a [new file with mode: 0644]

diff --git a/d8/dc2670a587a20d368f3f255a4247922a1a509a b/d8/dc2670a587a20d368f3f255a4247922a1a509a
new file mode 100644 (file)
index 0000000..287d8e0
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <jrollins@finestructure.net>\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 A1E24429E27\r
+       for <notmuch@notmuchmail.org>; Tue, 29 Nov 2011 06:40:29 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\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 da1nR4DxuUuI for <notmuch@notmuchmail.org>;\r
+       Tue, 29 Nov 2011 06:40:27 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 09562429E26\r
+       for <notmuch@notmuchmail.org>; Tue, 29 Nov 2011 06:40:27 -0800 (PST)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 70D4C328037;\r
+       Tue, 29 Nov 2011 06:40:24 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (dyn-pupin-171-39.dyn.columbia.edu\r
+       [128.59.171.39]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id 786CE2E50B36;\r
+       Tue, 29 Nov 2011 06:40:17 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 8179DBB0; Tue, 29 Nov 2011 06:40:16 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>,\r
+       Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/3] test: add functions to count how much times notmuch\r
+       was called\r
+In-Reply-To: <87hb1ovsz4.fsf@gmail.com>\r
+References: <1322271878-32614-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <1322450895-32523-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <1322450895-32523-2-git-send-email-dmitry.kurochkin@gmail.com>\r
+       <yf6aa7gj7w5.fsf@taco2.nixu.fi> <87hb1ovsz4.fsf@gmail.com>\r
+User-Agent: Notmuch/0.10~rc1+25~g719d650 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 29 Nov 2011 09:40:16 -0500\r
+Message-ID: <87wrajuh4f.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 29 Nov 2011 14:40:29 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, 29 Nov 2011 01:26:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmai=\r
+l.com> wrote:\r
+> > echo \$((count + 1)) > "$notmuch_counter_state_path"\r
+>=20\r
+> I do not think this is really an optimization.  And I find expr more\r
+> clear than using $(()).  I always have troubles remembering "random\r
+> special char syntax" (yeah, not a Perl fan :)), prefer human friendly\r
+> words.\r
+\r
+This allows the shell to do the math itself, without calling a\r
+subprocess.  I agree with Tomi that $(()) is a little cleaner.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJO1O7QAAoJEO00zqvie6q8UYUP/17RpOvVzqDVKpB+PImdLM4E\r
+u/+ZiQ4SOHpn+OQJRFJt7IDomrUFZSwoDOMvPVlQ/NPG0bPgz0VXs0kPvScTQWmF\r
+Rdv9MWBX/f7LlUiC+SO9NqIq9hzQDRj10Wp2vcVAUYW8/lZYAw9MmnpzQd2ti2NP\r
+eR7SoEHuO55UKrkZ1ZTBxa61uyfFdhXVC3bWoZySnSj2Bc5BPLBVy9bt6DRSWLNj\r
+DdPV8mBUptaNTzxtpqd9mBcvGie0nkJLV1ZXYQucaEd4Az/OQHTIGpKv1/BI0YDq\r
+g32Su4GlsQ1ZmFrOeY1LJ6Kn2MLkKxJMOH0eDk4yVEH+7u0bHBmyPGSXJjyyUqZR\r
+V+xuDLDpam1zTkDN/BCrSfwVJn311B6njUTzLUoVG7ibiYCpEzk8mojghNGlah7W\r
+uy98oE2p4EYdouIYuHX25tR4CJrts1Rn7JHcXmv20t5Wy1CPUK+2IF/XGKfE8+Ub\r
+FQ906OMv8lg0JGMvmwoNLG4QDEqx7h6sCjypni18w/NskyEiQbPmOOQwsxMWS44h\r
+w5aGuaLAOsdQYlMm4UXYBHS+kiQv3JBHqZs8R6w9M51oxSngkub/YQFwdYl49Ls8\r
+ad8Tcfkx0P6waCJ2022reqLm0C/u9wqJWyOuvZVUpfKwuXKAHy4nJrO3wjE3Ir6U\r
+Lfi4tFgvVKHh0vxQbnUq\r
+=E9wv\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r