From: David Bremner Date: Tue, 3 Mar 2015 14:10:25 +0000 (+0100) Subject: Re: [PATCH] go: add binding for notmuch_message_get_date X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=092c40a9e930b9ffa7c4c9ffaf7c592e9f083ff8;p=notmuch-archives.git Re: [PATCH] go: add binding for notmuch_message_get_date --- diff --git a/ec/81ed9c597f7c422b147b53b4f5e37db273a81d b/ec/81ed9c597f7c422b147b53b4f5e37db273a81d new file mode 100644 index 000000000..40f56d00c --- /dev/null +++ b/ec/81ed9c597f7c422b147b53b4f5e37db273a81d @@ -0,0 +1,72 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 47B9B431FAF + for ; Tue, 3 Mar 2015 06:14:45 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id n0eTg6QW-qYD for ; + Tue, 3 Mar 2015 06:14:41 -0800 (PST) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 95D97431FAE + for ; Tue, 3 Mar 2015 06:14:41 -0800 (PST) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.80) (envelope-from ) + id 1YSnWw-0003Ul-0j; Tue, 03 Mar 2015 14:10:38 +0000 +Received: (nullmailer pid 32677 invoked by uid 1000); Tue, 03 Mar 2015 + 14:10:25 -0000 +From: David Bremner +To: Tomi Ollila , Trevor Jim , + notmuch@notmuchmail.org +Subject: Re: [PATCH] go: add binding for notmuch_message_get_date +In-Reply-To: +References: +User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 03 Mar 2015 15:10:25 +0100 +Message-ID: <87385mmasu.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 03 Mar 2015 14:14:45 -0000 + +Tomi Ollila writes: + +>On Mon, Mar 02 2015, Trevor Jim wrote: +>> +>> -// TODO: wrap notmuch_message_get_date +>> +func (self *Message) GetDate() int64 { +>> + if self.message == nil { +>> + return -1 +> +> -1 is 1969-dec-31 23:59:59 UTC +> +> Should we care -- and e.g. return status in separate return value ? + +Given the current troubles with the main library API and missing status +values, I'd say in the long run we'll be happier with a real status +return. OTOH, I don't much about go. + +d +