Trevor Jim writes:
> I'm not sure what the "current troubles" are (happy to hear more), but
> the way I've handled the nil case is in keeping with the way it's
> handled in the other function bindings for go. Adding an error return
> to all relevant functions seems like a big change that should
Trevor Jim writes:
> I'm not sure what the "current troubles" are (happy to hear more), but
> the way I've handled the nil case is in keeping with the way it's
> handled in the other function bindings for go. Adding an error return
> to all relevant functions seems like a big change that should
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 se
On Mon, Mar 02 2015, Trevor Jim wrote:
> ---
> bindings/go/src/notmuch/notmuch.go | 8 +++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/bindings/go/src/notmuch/notmuch.go
> b/bindings/go/src/notmuch/notmuch.go
> index b9230ad..f5fd54c 100644
> --- a/bindings/go/src/not
> -1 is 1969-dec-31 23:59:59 UTC
>
> Should we care -- and e.g. return status in separate return value ?
BTW, I notice that when a message has no Date: field, notmuch reports its
timestamp as 0 without reporting an error :-)
-Trevor
> 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.
I'm not sure what the "current troubles" are (happy to hear more), but
the way I've handled the nil case is in keep
> -1 is 1969-dec-31 23:59:59 UTC
>
> Should we care -- and e.g. return status in separate return value ?
BTW, I notice that when a message has no Date: field, notmuch reports its
timestamp as 0 without reporting an error :-)
-Trevor
___
notmuch mailing
> 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.
I'm not sure what the "current troubles" are (happy to hear more), but
the way I've handled the nil case is in keep
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 se
On Mon, Mar 02 2015, Trevor Jim wrote:
> ---
> bindings/go/src/notmuch/notmuch.go | 8 +++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/bindings/go/src/notmuch/notmuch.go
> b/bindings/go/src/notmuch/notmuch.go
> index b9230ad..f5fd54c 100644
> --- a/bindings/go/src/not
---
bindings/go/src/notmuch/notmuch.go | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bindings/go/src/notmuch/notmuch.go
b/bindings/go/src/notmuch/notmuch.go
index b9230ad..f5fd54c 100644
--- a/bindings/go/src/notmuch/notmuch.go
+++ b/bindings/go/src/notmuch/notmuch.g
---
bindings/go/src/notmuch/notmuch.go | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bindings/go/src/notmuch/notmuch.go
b/bindings/go/src/notmuch/notmuch.go
index b9230ad..f5fd54c 100644
--- a/bindings/go/src/notmuch/notmuch.go
+++ b/bindings/go/src/notmuch/notmuch.g
12 matches
Mail list logo