--- /dev/null
+Return-Path: <eg@gaute.vetsj.com>\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 23599431FC0\r
+ for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 05:06:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 rNCQ4VMEg8+I for <notmuch@notmuchmail.org>;\r
+ Mon, 22 Sep 2014 05:06:12 -0700 (PDT)\r
+Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
+ [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 958FD431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 05:06:12 -0700 (PDT)\r
+Received: by mail-lb0-f181.google.com with SMTP id b6so1376176lbj.40\r
+ for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 05:06:10 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:date:from:subject:to:references:in-reply-to\r
+ :user-agent:message-id:mime-version:content-type\r
+ :content-transfer-encoding;\r
+ bh=cd5n+/Ij92mJiVkXA5J9/X2JObSlPDrgm8SvIFrAp9I=;\r
+ b=b6lftlEteFMsvCEOoOiEn54G52q0NeEqamf10jd6PplveyHHspd1yqP4EWIeDlIlmb\r
+ EYc8MVs0Ijf0PpeLnX1JoSzlYskuCBZ0ARfOLyBOa+1zaU5B1D1Fx1H1mxiuZzpms0Cv\r
+ peZBLNXssoQJcrjigzx7YRGloQMs7TIXjheCFi1N74tAqpHvXMbweYFJGVCztarkw/4u\r
+ 5f00novSIFAD10BoDA7RnF9k/C8TWZnESld6s74XOBsGfk7nBXxpDLqP+5MZU2q7whnc\r
+ 8y2OSJ/5H5czoqt2zVQZxN4rfI8VMBU9gSDuxohdautBkM0DHCRUr0UBsUIxIvSAPCLM\r
+ /5QA==\r
+X-Gm-Message-State:\r
+ ALoCoQns6dKkKTNk4m8Y8YZeFv31AJp0m50mk1CgYe9rr3aIZ1kU9IzdIUzWE1rczZ3YsVd4lm6p\r
+X-Received: by 10.152.42.209 with SMTP id q17mr25606880lal.43.1411387570264;\r
+ Mon, 22 Sep 2014 05:06:10 -0700 (PDT)\r
+Received: from localhost ([128.39.46.106])\r
+ by mx.google.com with ESMTPSA id qs6sm1071487lbb.40.2014.09.22.05.06.08\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Mon, 22 Sep 2014 05:06:09 -0700 (PDT)\r
+Date: Mon, 22 Sep 2014 12:06:21 +0000\r
+From: Gaute Hope <eg@gaute.vetsj.com>\r
+Subject: Re: [PATCH] Add configurable changed tag to messages that have been\r
+ changed on disk\r
+To: notmuch@notmuchmail.org\r
+References: <1396800683-9164-1-git-send-email-eg@gaute.vetsj.com>\r
+ <87fviiiuzn.fsf@maritornes.cs.unb.ca>\r
+ <CABKe4Mv6p77i5dBT9BV41hxmtrE4UPLR3NjZfpLuZDoE1KWYyA@mail.gmail.com>\r
+ <20140801185505.GS13893@mit.edu>\r
+ <1407313144-astroid-0-vyhth1tcrd-3835@strange>\r
+In-Reply-To: <1407313144-astroid-0-vyhth1tcrd-3835@strange>\r
+User-Agent: astroid/vb457ef13 (https://github.com/gauteh/astroid)\r
+Message-Id: <1411386960-astroid-2-k1e726ut3f-2518@strange>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8; format=flowed\r
+Content-Transfer-Encoding: quoted-printable\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: Mon, 22 Sep 2014 12:06:20 -0000\r
+\r
+Excerpts from Gaute Hope's message of August 6, 2014 10:29:\r
+> Austin Clements <amdragon@MIT.EDU> wrote on Fri, 01 Aug 2014 14:55:05 -04=\r
+00:\r
+>> I have a prototype implementation of message modification times on my\r
+>> lastmod-v1 branch at\r
+>>=20\r
+>> https://github.com/aclements/notmuch/tree/lastmod-v1\r
+>>=20\r
+>> It builds on my database features series that's currently awaiting\r
+>> review [1].\r
+>>=20\r
+>> The series uses a monotonic revision number, rather than wall-clock\r
+>> time, for reasons related to Xapian's concurrent control and detailed\r
+>> in the main commit's commit message. The implementation isn't quite\r
+>> useful from the CLI yet because I haven't added any way to query the\r
+>> database's current revision number. (I'm still thinking about how I\r
+>> want to do this, since search/show don't have a good way to deliver\r
+>> "additional" information right now. I might just add the last\r
+>> modification for each individual message/max of all messages in a\r
+>> thread, similar to what Thomas Jost's patch did long ago.)\r
+>>=20\r
+>> [1] id:1406859003-11561-1-git-send-email-amdragon@mit.edu\r
+=20\r
+> this should allow me to do what I wish to accomplish. The message\r
+> deletion is still a problem though, I can see two options at the moment:\r
+\r
+Hi list,\r
+\r
+While exploring the possibility of syncing maildir/X-keywords with tags\r
+I had some thoughts about lastmod and message modification:\r
+\r
+As briefly discussed on #notmuch, I noticed that it seems that 'notmuch\r
+new' does not detect that a message source has been changed, unless the\r
+file is also re-named.\r
+\r
+This means that for instance if the X-Keywords fields have been updated\r
+in a message (from GMail with offlineimap, synclabels =3D yes) the lastmod\r
+field will remain unchanged, and a source modification will be\r
+undetectable to a client program using this value.\r
+\r
+Would it not make sense that if a message has a more recent mtime than\r
+at index time it is re-indexed?\r
+\r
+Also, for the lastmod branch I would wish for a notmuch_message_touch()\r
+method where the lastmod time is updated to the last. As well as a\r
+notmuch_database_reindex_message () - possibly defined/documented\r
+behaviour for notmuch_database_add_message () when the filename is\r
+already added (in which case I would expect notmuch to re-index the\r
+message).\r
+\r
+Doing notmuch_database_remove_message followed by _add_message could\r
+risk deleting the entry if this file is the only on-disk-representation.\r
+\r
+Cheers, Gaute\r
+\r
+=\r