1 Return-Path: <david@tethera.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B5AAB431FAF
\r
6 for <notmuch@notmuchmail.org>; Thu, 5 Mar 2015 23:23:12 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id UrS2OQyw1yKf for <notmuch@notmuchmail.org>;
\r
16 Thu, 5 Mar 2015 23:23:09 -0800 (PST)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 72132431FAE
\r
22 for <notmuch@notmuchmail.org>; Thu, 5 Mar 2015 23:23:09 -0800 (PST)
\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
24 4.80) (envelope-from <david@tethera.net>)
\r
25 id 1YTmZF-0006HR-Vg; Fri, 06 Mar 2015 07:21:05 +0000
\r
26 Received: (nullmailer pid 28867 invoked by uid 1000); Fri, 06 Mar 2015
\r
28 From: David Bremner <david@tethera.net>
\r
29 To: Trevor Jim <tjim@mac.com>, Tomi Ollila <tomi.ollila@iki.fi>,
\r
30 notmuch@notmuchmail.org
\r
31 Subject: Re: [PATCH] go: add binding for notmuch_message_get_date
\r
32 In-Reply-To: <m261aijbj5.fsf@att.com>
\r
33 References: <m2fv9np216.fsf@att.com> <m261aimfcm.fsf@guru.guru-group.fi>
\r
34 <87385mmasu.fsf@maritornes.cs.unb.ca> <m261aijbj5.fsf@att.com>
\r
35 User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1
\r
36 (x86_64-pc-linux-gnu)
\r
37 Date: Fri, 06 Mar 2015 08:20:52 +0100
\r
38 Message-ID: <87wq2ua8x7.fsf@maritornes.cs.unb.ca>
\r
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Fri, 06 Mar 2015 07:23:12 -0000
\r
55 Trevor Jim <tjim@mac.com> writes:
\r
58 > I'm not sure what the "current troubles" are (happy to hear more), but
\r
59 > the way I've handled the nil case is in keeping with the way it's
\r
60 > handled in the other function bindings for go. Adding an error return
\r
61 > to all relevant functions seems like a big change that should be handled
\r
64 It seems like at least some functions [1] already use multiple return values
\r
65 to return a status value. There is also already a STATUS_NULL_POINTER
\r
68 [1]: from notmuch.go
\r
70 func NewDatabase(path string) (*Database, Status) {
\r
71 func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) {
\r
72 func (self *Database) Close() Status {
\r
73 func (self *Database) GetDirectory(path string) (*Directory, Status) {
\r
74 func (self *Database) AddMessage(fname string) (*Message, Status) {
\r
75 func (self *Database) RemoveMessage(fname string) Status {
\r
76 func (self *Database) FindMessage(message_id string) (*Message, Status) {
\r
77 func (self *Message) AddTag(tag string) Status {
\r
78 func (self *Message) RemoveTag(tag string) Status {
\r
79 func (self *Message) RemoveAllTags() Status {
\r
80 func (self *Message) Freeze() Status {
\r
81 func (self *Message) Thaw() Status {
\r