---
 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.go
@@ -801,7 +801,13 @@ func (self *Message) SetFlag(flag Flag, value bool) {
        C.notmuch_message_set_flag(self.message, 
C.notmuch_message_flag_t(flag), v)
 }

-// TODO: wrap notmuch_message_get_date
+func  (self *Message) GetDate() int64 {
+       if self.message == nil {
+               return -1
+       }
+       timestamp := C.notmuch_message_get_date(self.message)
+       return int64(timestamp)
+}

 /* Get the value of the specified header from 'message'.
  *
-- 
2.2.2

Reply via email to