Re: [PATCH 2/5] lib: Add a MTIME value to every mail document
authorThomas Jost <schnouki@schnouki.net>
Wed, 21 Dec 2011 00:34:07 +0000 (01:34 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:07 +0000 (09:41 -0800)
a2/9b8ebc39f85e63df0b5f06f5fd9661a538eaee [new file with mode: 0644]

diff --git a/a2/9b8ebc39f85e63df0b5f06f5fd9661a538eaee b/a2/9b8ebc39f85e63df0b5f06f5fd9661a538eaee
new file mode 100644 (file)
index 0000000..d4fa997
--- /dev/null
@@ -0,0 +1,112 @@
+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 C3500429E25\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Dec 2011 16:34:09 -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 CXh8dUxZ09+D for <notmuch@notmuchmail.org>;\r
+       Tue, 20 Dec 2011 16:34:09 -0800 (PST)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id 18CA0431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Dec 2011 16:34:09 -0800 (PST)\r
+Received: from odin.local (nancy.schnouki.net [78.238.0.45])\r
+       by ks3536.kimsufi.com (Postfix) with ESMTPSA id 2FC776A0026;\r
+       Wed, 21 Dec 2011 01:34:08 +0100 (CET)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1324427648;\r
+       bh=67zKhK6gd8Y+SLNNRDJX2rCW/Fu4743F2iFQp7YViIk=;\r
+       h=From:To:Subject:In-Reply-To:References:Date:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=guW0v3WZFv/4iLVC7BPO3S0bwSveLj1dPTKoss6eNvjjWWz5tHF9nFRPCBAEW0Rvs\r
+       t9gDoJNAjx+gpaA1lZz4ON9hxlB1u4KDSIq1pHYCNHOnEIB5M2k+SddD69ulb/R1oZ\r
+       3+jzW3iMHmc2GtWTGWUCNX5fEGD9cvBcZavn1EBE=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: Mark Anderson <MarkR.Anderson@amd.com>,\r
+       "notmuch\@notmuchmail.org" <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH 2/5] lib: Add a MTIME value to every mail document\r
+In-Reply-To: <3wdvcpi6cql.fsf@testarossa.amd.com>\r
+References: <1323796305-28789-1-git-send-email-schnouki@schnouki.net>\r
+       <1323796305-28789-3-git-send-email-schnouki@schnouki.net>\r
+       <3wdvcpi6cql.fsf@testarossa.amd.com>\r
+User-Agent: Notmuch/0.10.2+122~g1d81c5e (http://notmuchmail.org)\r
+       Emacs/24.0.92.1 (x86_64-unknown-linux-gnu)\r
+Date: Wed, 21 Dec 2011 01:34:07 +0100\r
+Message-ID: <87bor2ahkw.fsf@schnouki.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\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: Wed, 21 Dec 2011 00:34:09 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Wed, 14 Dec 2011 14:54:10 -0700, Mark Anderson <MarkR.Anderson@amd.com> =\r
+wrote:\r
+> On Tue, 13 Dec 2011 11:11:42 -0600, Thomas Jost <schnouki@schnouki.net> w=\r
+rote:\r
+> > This is a time_t value, similar to the message date (TIMESTAMP). It is =\r
+first set\r
+> > when the message is added to the database, and is then updated every ti=\r
+me a tag\r
+> > is added or removed. It can thus be used for doing incremental dumps of=\r
+ the\r
+> > database or for synchronizing it between several computers.\r
+> >=20\r
+> > This value can be read freely (with notmuch_message_get_mtime()) but fo=\r
+r now it\r
+> > can't be set to an arbitrary value: it can only be set to "now" when up=\r
+dated.\r
+> > There's no specific reason for this except that I don't really see a re=\r
+al use\r
+> > case for setting it to an arbitrary value.\r
+>=20\r
+> I think it would be easier to write some testcases if the last modified\r
+> time could be touched directly.  Perhaps they aren't in the set of "must\r
+> have", but it's what comes to mind.\r
+\r
+Well since I posted this, I found other good reasons to have a set_mtime\r
+function. I'll post an updated series lated which will include it -- and\r
+possibly some tests too :)\r
+\r
+Thanks,\r
+\r
+=2D-=20\r
+Thomas/Schnouki\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJO8Sl/AAoJEMPdciX+bh5I/4oH/31AKtSzaiPyIqRvlLLNu3gY\r
+wWRAmWWElqNOsHddtyyvn95no6Do0Ws0Sj5VfXhr/OCBZQY6cg1fl0F/4oeSyW2G\r
+82ldVjUuP05yS2Yl2p57nLb1K9vTsmAmM9/z7giXGTKWVslSPpzYZPJZonmErQ4y\r
+a6Y+01eat6FT6rmZb0A5+byubotu7kd6v5ZqTPzZQqkpcmkBkr4o9cDsNoPerOaT\r
++AvPunpTkMtHv8m8BP6JNT/WYkWEZ9Id20rjYrOALcXlhGewaWanHBJq1Cm88wZH\r
+CocArw3PXtMmqII6rspvNXtMsWiFhl/MIqsm507YCprw2Qll+xTYZFi87pgn+wY=\r
+=wK9Z\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r