Re: Use of strcasestr
[notmuch-archives.git] / 47 / f9b8b14b47de07d1306bdfc101aee5a085a194
diff --git a/47/f9b8b14b47de07d1306bdfc101aee5a085a194 b/47/f9b8b14b47de07d1306bdfc101aee5a085a194
new file mode 100644 (file)
index 0000000..2f7abb2
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <dottedmag@leibnitz.dottedmag.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 742EA4196F2\r
+       for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 12:18:14 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.189\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.189 tagged_above=-999 required=5\r
+       tests=[BAYES_05=-0.5, NO_DNS_FOR_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+       T_MIME_NO_TEXT=0.01] 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 WfPeMMdXndwg for <notmuch@notmuchmail.org>;\r
+       Mon, 12 Apr 2010 12:18:12 -0700 (PDT)\r
+Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])\r
+       by olra.theworths.org (Postfix) with ESMTP id E2782431FC1\r
+       for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 12:18:11 -0700 (PDT)\r
+Received: from leibnitz.dottedmag.net (unknown [91.197.127.125])\r
+       by dottedmag.net (Postfix) with ESMTPSA id 0F7558C072;\r
+       Mon, 12 Apr 2010 21:18:11 +0200 (CEST)\r
+Received: from dottedmag by leibnitz.dottedmag.net with local (Exim 4.71)\r
+       (envelope-from <dottedmag@leibnitz.dottedmag.net>)\r
+       id 1O1Q59-0004a6-Qu; Tue, 13 Apr 2010 03:18:07 +0700\r
+From: Mikhail Gusarov <dottedmag@dottedmag.net>\r
+To: Tomas Carnecky <tom@dbservice.com>\r
+Subject: Re: Use of strcasestr\r
+References: <4BC326F2.10300@dbservice.com>\r
+Date: Tue, 13 Apr 2010 03:18:07 +0700\r
+In-Reply-To: <4BC326F2.10300@dbservice.com> (Tomas Carnecky's message of "Mon,\r
+       12 Apr 2010 15:58:10 +0200")\r
+Message-ID: <87zl182znk.fsf@leibnitz.dottedmag.net>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Cc: notmuch <notmuch@notmuchmail.org>\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: Mon, 12 Apr 2010 19:18:14 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+\r
+Twas brillig at 15:58:10 12.04.2010 UTC+02 when tom@dbservice.com did gyre =\r
+and gimble:\r
+\r
+ TC> In 4fd9ea0 (guess From address from Received headers, 2010-04-06) you =\r
+introduced\r
+ TC> strcasestr, which is not portable, see 82e47ec (notmuch reply: Use str=\r
+str\r
+ TC> instead of strcasestr for portability., 2010-02-04).\r
+\r
+ TC> Is strcasestr really necessary there or can it be replaced with strstr?\r
+\r
+strcasecmp is POSIX.1-2001.\r
+\r
+If you know any OS which does not have it, add a new file to compat/ subdir.\r
+\r
+=2D-=20\r
+  http://fossarchy.blogspot.com/\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJLw3//AAoJEJ0g9lA+M4iItj0P/R9rJxcehE2J8IP99fRr1DbN\r
+N0mgP6I++Aom4djRNBK5zdFYWBCgrX68WuMre6jQNUBU3QOd/ikBtok/TM5AXqem\r
+fIHGUEZNjdsyvZ1ediLRgh61mNVjZZbFgWqPhiP5kEp+TP3slBxiAiQp+NySIO6i\r
+sC3hmOSEB44WY2Ewsiul/xyA5+QK9ck95DgbKVds3jS0/SUA6anj/TnFRyyeYMrv\r
+lccXJoEd5dKKYMsB3TcAb6MlGamJLc8x7tEaymLBmxWs8oUgTV+jCYLcGMQUJx0Q\r
+CZd5xyPIkxAHfdvrBGkEITT2Ibejvs9N+GHq4OTHyxD64O7OsGMvXFPmR28xUkk6\r
+GoQPwZl/ud1nH0H3RfDfDFu4yOvPiWADUgzI9QLE225sIKWWW6VDgs6zRbi6H0xf\r
+llP49U1+4B8GpyfhYOEHpLO1bGR4aWhTO6XX8Q/682PyjdK4AMRkaRlpp5XYZdyG\r
+QSHpJfg5BEFTmMl45KIUDvDmuwDL1WjKN+EbfoyfRuktUgUTkBAcCmVZWzU92UXA\r
+aBZRp0kxwTwMN00wqNniatrFYaJPm7aX1Ayh4DqrEJ/uv9W07v9KE/eyk67B3btD\r
+xZNjuUsVnAg+9OW+vow7cfOjyJh/Jad80s+TkANDH75RUKJZBrnq53gLhgknAET6\r
+XcojZq+E/gMA0p/djaZS\r
+=BEB4\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r