Re: [PATCH] go: Update to the current notmuch_database_find_message API
authorSebastien Binet <seb.binet@gmail.com>
Mon, 30 Apr 2012 20:14:37 +0000 (22:14 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:52 +0000 (09:46 -0800)
39/7265a776443e0412a7b16338227c4c393ced62 [new file with mode: 0644]

diff --git a/39/7265a776443e0412a7b16338227c4c393ced62 b/39/7265a776443e0412a7b16338227c4c393ced62
new file mode 100644 (file)
index 0000000..22d8b5a
--- /dev/null
@@ -0,0 +1,134 @@
+Return-Path: <seb.binet@gmail.com>\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 1114E431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 13:13:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.789\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01]\r
+       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 yQcQz6zMA9Ng for <notmuch@notmuchmail.org>;\r
+       Mon, 30 Apr 2012 13:13:46 -0700 (PDT)\r
+Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
+       [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 346A2431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 13:13:46 -0700 (PDT)\r
+Received: by wibhn6 with SMTP id hn6so2573973wib.2\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 13:13:45 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:cc:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type;\r
+       bh=Wr1TmkOamTXP9aBidPA5ce/nxpZzbzDBTSVrc5cBAwg=;\r
+       b=KVjRt/y8jekOAmzmdLPhuJAmFpyXJsZJ34ugBMp+SQaXLOegHcqrRYTYwscTuAkUfO\r
+       98GJcMmPldnPXgwXSb247RU9SqOyOMbVcLDk8/Oq7oBkV9RCbX+zuOoka0+XTF5eJqYv\r
+       /ddcJ/RMx/Bn6fbI3Z9GOKrhLPs8IyRjgCbjuF0R5SzJOMdn5TGBfIr3Bn2L4SGAT/DQ\r
+       DnnPMvxoQJvqQO7yzvBjOTeAY9QhnoBsODyGi8r51JAZoWOd+o5FX6BXKEhH83Rff4kk\r
+       VHJzI76V7ZF9iXor8jQbFlJUoMRKMfGdM5bR0F3wlAPZ5/tbe7wRPxT1A0p+orwiwnbm\r
+       knpg==\r
+Received: by 10.180.83.72 with SMTP id o8mr3022488wiy.5.1335816824971;\r
+       Mon, 30 Apr 2012 13:13:44 -0700 (PDT)\r
+Received: from localhost (pc-88068.lal.in2p3.fr. [134.158.88.68])\r
+       by mx.google.com with ESMTPS id fl2sm48640161wib.2.2012.04.30.13.13.43\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 30 Apr 2012 13:13:44 -0700 (PDT)\r
+From: Sebastien Binet <seb.binet@gmail.com>>\r
+To: Justus Winter <4winter@informatik.uni-hamburg.de>,\r
+       David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH] go: Update to the current notmuch_database_find_message\r
+       API\r
+In-Reply-To: <20120430195420.2528.48612@thinkbox.jade-hamburg.de>\r
+References: <1335649518-1970-1-git-send-email-amdragon@mit.edu>\r
+       <87lildph9w.fsf@zancas.localnet>\r
+       <20120430195420.2528.48612@thinkbox.jade-hamburg.de>\r
+User-Agent: Notmuch/0.12+123~g9429141 (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Mon, 30 Apr 2012 22:14:37 +0200\r
+Message-ID: <87sjfldljm.fsf@cern.ch>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Cc: , notmuch mailing list <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, 30 Apr 2012 20:13:47 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+\r
+Justus,\r
+\r
+Justus Winter <4winter@informatik.uni-hamburg.de> writes:\r
+\r
+> Quoting David Bremner (2012-04-30 13:53:47)\r
+>> Austin Clements <amdragon@MIT.EDU> writes:\r
+>>=20\r
+>> > The signature of notmuch_database_find_message was changed in 02a30767\r
+>> > to report errors and the Go bindings were never updated.  This brings\r
+>> > the Go bindings in sync with that change and at least makes them\r
+>> > compile with Go r60.3, the last release before Go 1.\r
+>>=20\r
+>> I don't have any easy way to test this, since the current versions in=20\r
+>> Debian are all based on Go 1.  On the other hand I guess it doesn't make\r
+>> things worse.  Anybody have any objections to this patch?\r
+>\r
+> lgtm.\r
+>\r
+>> In the long run we have to decide what to do about these bindings. Seb\r
+>> (or anyone else) are you interested in porting them to Go 1 and\r
+>> maintaining them?  Otherwise it may be time to deprecate them.\r
+>\r
+> I care enough for the go environment to keep the go bindings\r
+> working. I've updated the bindings, the build infrastructure and the\r
+> notmuch-addrlookup utility to go 1. I'll send a patch series as a\r
+> followup that is meant to be applied upon Austins patch.\r
+>\r
+> The last patch in the series is a cleanup of the source code done with\r
+> the gofmt utility. Go is somewhat strict in its coding conventions,\r
+> but there is a utility that magically formats code. This makes the go\r
+> code in the wild remarkably consistent. We should stick to the\r
+> conventions too, hence this patch even if it breaks git blame\r
+> somewhat.\r
+>\r
+> I haven't tested the bindings in depth, but the notmuch-addrlookup\r
+> utility seems to be working fine.\r
+\r
+kudos for picking this up.\r
+I must say I don't use these go bindings in anger anymore: this was\r
+mainly a test project for go.\r
+(I am still a happy go user as well as a notmuch one, though, but I\r
+prefer bbdb to notmuch-addrlookup)\r
+\r
+=2Ds\r
+\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.19 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk+e8r0ACgkQPj4AVbsZCCaujwCcDmFifxccbNK/by+L3hCE13vG\r
+lckAnRKkXa9A+sAKCYAOxIGYf3LNa65V\r
+=W5Vw\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r