--- /dev/null
+Return-Path: <schnouki@schnouki.net>\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 8A728429E38\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Dec 2011 09:12:12 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\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 oa9F7lZ19Dgn for <notmuch@notmuchmail.org>;\r
+ Tue, 13 Dec 2011 09:12:11 -0800 (PST)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+ by olra.theworths.org (Postfix) with ESMTP id C76B8429E30\r
+ for <notmuch@notmuchmail.org>; Tue, 13 Dec 2011 09:12:09 -0800 (PST)\r
+Received: from thor.loria.fr (thor.loria.fr [152.81.12.250])\r
+ by ks3536.kimsufi.com (Postfix) with ESMTPSA id 1D81B6A0026;\r
+ Tue, 13 Dec 2011 18:12:09 +0100 (CET)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+ s=key-schnouki; t=1323796329;\r
+ bh=ZCNb4W8qUOOTvM7dXv+9GHmskgUKIuqUjtxCtwcFigY=;\r
+ h=From:To:Subject:Date:Message-Id:In-Reply-To:References;\r
+ b=GbxkD1oHsqV8L0qnxkRNNSaQoWm2yESyTfCSJMaRlZqp5GTFRwOPMVQCZUF7pSxhc\r
+ tEXhrADxyYfLEyp9D0jG44xRGC6YJbI1v4ksLefQ0ViTCS+SCwtLwSz8m5/VXU+9LZ\r
+ e6x+wRg4H1UZqMfhILvijav5K2S2z08pIOPOFFU8=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 5/5] python: add get_mtime() to the Message class\r
+Date: Tue, 13 Dec 2011 18:11:45 +0100\r
+Message-Id: <1323796305-28789-6-git-send-email-schnouki@schnouki.net>\r
+X-Mailer: git-send-email 1.7.8\r
+In-Reply-To: <1323796305-28789-1-git-send-email-schnouki@schnouki.net>\r
+References: <1323796305-28789-1-git-send-email-schnouki@schnouki.net>\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: Tue, 13 Dec 2011 17:12:13 -0000\r
+\r
+---\r
+ bindings/python/notmuch/message.py | 20 ++++++++++++++++++++\r
+ 1 files changed, 20 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py\r
+index ce8e718..56f56c2 100644\r
+--- a/bindings/python/notmuch/message.py\r
++++ b/bindings/python/notmuch/message.py\r
+@@ -293,6 +293,10 @@ class Message(object):\r
+ _get_date.argtypes = [NotmuchMessageP]\r
+ _get_date.restype = c_long\r
+ \r
++ _get_mtime = nmlib.notmuch_message_get_mtime\r
++ _get_mtime.argtypes = [NotmuchMessageP]\r
++ _get_mtime.restype = c_long\r
++\r
+ _get_header = nmlib.notmuch_message_get_header\r
+ _get_header.argtypes = [NotmuchMessageP, c_char_p]\r
+ _get_header.restype = c_char_p\r
+@@ -401,6 +405,22 @@ class Message(object):\r
+ raise NotmuchError(STATUS.NOT_INITIALIZED)\r
+ return Message._get_date(self._msg)\r
+ \r
++ def get_mtime(self):\r
++ """Returns time_t of the message mtime\r
++\r
++ The mtime is the timestamp of the last time the message was modified,\r
++ e.g. the time it was added to the database or the last time a tag was\r
++ added or removed.\r
++\r
++ :returns: A time_t timestamp.\r
++ :rtype: c_unit64\r
++ :exception: :exc:`NotmuchError` STATUS.NOT_INITIALIZED if the message\r
++ is not initialized.\r
++ """\r
++ if self._msg is None:\r
++ raise NotmuchError(STATUS.NOT_INITIALIZED)\r
++ return Message._get_mtime(self._msg)\r
++\r
+ def get_header(self, header):\r
+ """Get the value of the specified header.\r
+ \r
+-- \r
+1.7.8\r
+\r