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