--- /dev/null
+Return-Path: <adrien@bustany.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 499FF431FAF\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Jul 2012 11:41:06 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\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 5N6vU8HQ8vua for <notmuch@notmuchmail.org>;\r
+ Wed, 18 Jul 2012 11:41:05 -0700 (PDT)\r
+Received: from mail.bustany.org (bustany.org [176.31.244.208])\r
+ by olra.theworths.org (Postfix) with ESMTP id DD652431FBD\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Jul 2012 11:41:04 -0700 (PDT)\r
+Received: from localhost.localdomain (91-158-2-79.elisa-laajakaista.fi\r
+ [91.158.2.79])\r
+ by mail.bustany.org (Postfix) with ESMTPSA id B19371400C0\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Jul 2012 20:37:07 +0200 (CEST)\r
+From: Adrien Bustany <adrien@bustany.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/7] go: Use iota in enum bindings\r
+Date: Wed, 18 Jul 2012 21:34:29 +0300\r
+Message-Id: <1342636475-16057-2-git-send-email-adrien@bustany.org>\r
+X-Mailer: git-send-email 1.7.7.6\r
+In-Reply-To: <1342636475-16057-1-git-send-email-adrien@bustany.org>\r
+References: <1342636475-16057-1-git-send-email-adrien@bustany.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: Wed, 18 Jul 2012 18:41:06 -0000\r
+\r
+Using iota is the correct way to get the values in the enum increment\r
+automatically. The old code would just set all the enum values to 0.\r
+---\r
+ bindings/go/src/notmuch/notmuch.go | 6 +++---\r
+ 1 files changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go\r
+index 00bd53a..ecd7418 100644\r
+--- a/bindings/go/src/notmuch/notmuch.go\r
++++ b/bindings/go/src/notmuch/notmuch.go\r
+@@ -86,7 +86,7 @@ type Filenames struct {\r
+ type DatabaseMode C.notmuch_database_mode_t\r
+ \r
+ const (\r
+- DATABASE_MODE_READ_ONLY DatabaseMode = 0\r
++ DATABASE_MODE_READ_ONLY DatabaseMode = iota\r
+ DATABASE_MODE_READ_WRITE\r
+ )\r
+ \r
+@@ -386,7 +386,7 @@ func (self *Database) CreateQuery(query string) *Query {\r
+ type Sort C.notmuch_sort_t\r
+ \r
+ const (\r
+- SORT_OLDEST_FIRST Sort = 0\r
++ SORT_OLDEST_FIRST Sort = iota\r
+ SORT_NEWEST_FIRST\r
+ SORT_MESSAGE_ID\r
+ SORT_UNSORTED\r
+@@ -774,7 +774,7 @@ func (self *Message) GetFileName() string {\r
+ type Flag C.notmuch_message_flag_t\r
+ \r
+ const (\r
+- MESSAGE_FLAG_MATCH Flag = 0\r
++ MESSAGE_FLAG_MATCH Flag = iota\r
+ )\r
+ \r
+ /* Get a value of a flag for the email corresponding to 'message'. */\r
+-- \r
+1.7.7.6\r
+\r