Re: [PATCH v2] nmbug: Add an 'init' command
authorW. Trevor King <wking@tremily.us>
Sat, 11 Oct 2014 07:10:00 +0000 (00:10 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:12 +0000 (10:05 -0800)
00/d338b678e6025f30a053d8cb335944b30641c4 [new file with mode: 0644]

diff --git a/00/d338b678e6025f30a053d8cb335944b30641c4 b/00/d338b678e6025f30a053d8cb335944b30641c4
new file mode 100644 (file)
index 0000000..d75119f
--- /dev/null
@@ -0,0 +1,148 @@
+Return-Path: <wking@tremily.us>\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 1D678431FD9\r
+       for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 00:10:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] 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 1Gbhee-17I03 for <notmuch@notmuchmail.org>;\r
+       Sat, 11 Oct 2014 00:10:03 -0700 (PDT)\r
+Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net\r
+       [96.114.154.163])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 770BA431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 00:10:03 -0700 (PDT)\r
+Received: from resomta-po-10v.sys.comcast.net ([96.114.154.234])\r
+       by resqmta-po-04v.sys.comcast.net with comcast\r
+       id 1jA11p00253iAfU01jA1la; Sat, 11 Oct 2014 07:10:01 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by resomta-po-10v.sys.comcast.net with comcast\r
+       id 1jA01p007152l3L01jA09E; Sat, 11 Oct 2014 07:10:01 +0000\r
+Received: by odin.tremily.us (Postfix, from userid 1000)\r
+       id 55277141683E; Sat, 11 Oct 2014 00:10:00 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
+       t=1413011400; bh=Lu+rhjeDTA4TqgMkrgkXWscUBiRGXKcoRVsbEos3u6I=;\r
+       h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
+       b=LXm53a4x665daG90c7efN/n4+vjFsvg8H73d0JKTKmJJU28s2Y2ogchQcDdasNOS9\r
+       aq6YBYsJOT6tETyZd9TQPlaeMocv3lHxvLuaYyBZlKt/VVHhOO6oTt9kxrySqkXmCQ\r
+       y4QJE6a/TQHN3SEK/uAR07fI9g6kR4mfIUSt4UXQ=\r
+Date: Sat, 11 Oct 2014 00:10:00 -0700\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH v2] nmbug: Add an 'init' command\r
+Message-ID: <20141011071000.GB10926@odin.tremily.us>\r
+References:\r
+ <eaa9cf1cb3c00c591dc675c0f314ca31909ff74c.1412965476.git.wking@tremily.us>\r
+       <8761frgqbs.fsf@maritornes.cs.unb.ca>\r
+       <20141011051153.GA10926@odin.tremily.us>\r
+       <87siivf5s3.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV"\r
+Content-Disposition: inline\r
+In-Reply-To: <87siivf5s3.fsf@maritornes.cs.unb.ca>\r
+OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
+       url=http://tremily.us/pubkey.txt\r
+User-Agent: Mutt/1.5.23 (2014-03-12)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20140121; t=1413011401;\r
+       bh=9yRIyZJSNfMVocyuC/0H9N42Xvs2Mh5TMrUglzyxehw=;\r
+       h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=kBCk7Z6Y1XPwZgNh+2D9wRgdu/JU1XPzMJpmOkRBlIIvuYr6GPND2/IEfbOPZ+E9u\r
+       coBx5e906cmSIgYvcWckdwotrHOWAC9DBWWIidlfGBzeo4ashMKsj64rSK3FhyYYkq\r
+       MaK7/WSX+WNgWRxa1APQO1ASD/2d4CwtrVW84eZGKBs96qtGYdOoea2oDhAejHmv5F\r
+       Thx0lCKTunoz2YGcQRsVvNPBvb5Ofo2nqoFnp2GN0209atci/kFrTIiv7WMaMw1uQj\r
+       OPDm+3OZjrgZUD4v+rgshdF8OQZYQS9IoBRl7SViLZ4ZZLkxUx69UaDaA9D9Jv3Cf2\r
+       HDV/k+qSYQMfw==\r
+Cc: 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: Sat, 11 Oct 2014 07:10:13 -0000\r
+\r
+\r
+--Y7xTucakfITjPcLV\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sat, Oct 11, 2014 at 09:02:20AM +0200, David Bremner wrote:\r
+> W. Trevor King writes:\r
+> > On Sat, Oct 11, 2014 at 06:53:11AM +0200, David Bremner wrote:\r
+> >> W. Trevor King writes:\r
+> >> > but I expect that closing stdin is more portable than the\r
+> >> > /dev/null path.\r
+> >>=20\r
+> >> /dev/null is part of POSIX\r
+> >\r
+> > Maybe folks want to use nmbug on Windows or some other crazy\r
+> > non-POSIX OS?  I don't know how Windows-compatible the rest of\r
+> > notmuch is (it looks like Xapian can be built with MSYS+mingw or\r
+> > MSVC [1,2]), and I don't think supporting non-POSIX OSes is worth\r
+> > a lot of effort, but using stdin instead here is easy ;).\r
+>=20\r
+> I have no objection to the code, but I think the comment about\r
+> portability just causes confusion. As witnessed by this discussion.\r
+\r
+I wanted to explain why I wasn't using /dev/null, especially since\r
+that's what the Perl version used and that phrasing is preserved in\r
+the current comment:\r
+\r
+  # magic hash for Git (git hash-object -t blob /dev/null)                 =\r
+      =20\r
+  _EMPTYBLOB =3D 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'\r
+\r
+So how should I more clearly explain why I prefer stdin to /dev/null?\r
+Maybe =E2=80=9C=E2=80=A6 is more portable than the /dev/null path (which do=\r
+esn't exist\r
+on Windows, for example).=E2=80=9D?\r
+\r
+Cheers,\r
+Trevor\r
+\r
+--=20\r
+This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
+For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
+\r
+--Y7xTucakfITjPcLV\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQIcBAEBAgAGBQJUONfAAAoJEG8/JgBt8ol826gP/jQeehj9yd7WVMOF4qr5q/aq\r
+nq8oUm+vFK6zQQfRLywGWVMO2ITUoNvEm318I7cm0qyP5Z3yrs/CsdKoLuHeyKju\r
+CEYIj61YMgZ4p3Vhvt9sS4matk65k51ky7WxLEC4DjCQQARVmdndG4PFc5z6V6vY\r
+IpBaNSeahfUBUAn1acPvBAGeUgTAYTrKR/+qi5pnHBioq8fz55F7Cj0akYK8MrdL\r
++ijdNewmHg0Ju4Pk1+z2zPzJC9R+YFwTp3An5gekOS1IjZgYDTxJz7fsUISSpq9y\r
+m8nRRxhEt2QoxsjRtxZiJm+hhbndIkPxIHE3tJ5tPZVXHU+eg76EX4nNMgCatr6S\r
+0quz2W80pcoIym8kmKqiRa+4wmesXGcz0bHdeNqPq4/z90oi+J89SZw2xf605F3D\r
+uEEVp4zfJa77iRRnw22WXZewDjQpjJyTU1nK4SpmHSG+ULJvLpS/f2WCogrYMzyf\r
+TKuWIfNtcxKt0ydF0it3OFBmRdbo5V+Re5HmDywu8Ynxz2WI7KQbvnCWevCaaP4+\r
+RhKYRPc7L+1SrJHlh+i2gkvhE5ALM7bIPuOpeD86ynZobJ351zoCcWR4t5Jv2NgS\r
+/XHZiu1Xv4BgdDR+iqpvQ0+QuyHOWN5FG9TWaWeQqmxA6X0NXe14Ob2tbHjJbA2f\r
+5WyIiFnS148QsSSNN6CD\r
+=MCVI\r
+-----END PGP SIGNATURE-----\r
+\r
+--Y7xTucakfITjPcLV--\r