From: Austin Clements <amdragon@MIT.EDU>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH] Add configurable changed tag to messages that have been changed on disk
Date: Fri, 1 Aug 2014 14:55:05 -0400 [thread overview]
Message-ID: <20140801185505.GS13893@mit.edu> (raw)
In-Reply-To: <CABKe4Mv6p77i5dBT9BV41hxmtrE4UPLR3NjZfpLuZDoE1KWYyA@mail.gmail.com>
I have a prototype implementation of message modification times on my
lastmod-v1 branch at
https://github.com/aclements/notmuch/tree/lastmod-v1
It builds on my database features series that's currently awaiting
review [1].
The series uses a monotonic revision number, rather than wall-clock
time, for reasons related to Xapian's concurrent control and detailed
in the main commit's commit message. The implementation isn't quite
useful from the CLI yet because I haven't added any way to query the
database's current revision number. (I'm still thinking about how I
want to do this, since search/show don't have a good way to deliver
"additional" information right now. I might just add the last
modification for each individual message/max of all messages in a
thread, similar to what Thomas Jost's patch did long ago.)
[1] id:1406859003-11561-1-git-send-email-amdragon@mit.edu
Quoth Gaute Hope on Jul 28 at 4:37 pm:
> On Thu, Jul 3, 2014 at 12:42 PM, David Bremner <[1]david@tethera.net>
> wrote:
>
> Gaute Hope <[2]eg@gaute.vetsj.com> writes:
>
> > When one of the source files for a message is changed on disk,
> renamed,
> > deleted or a new source file is added. A configurable changed tag is
> > is added. The tag can be configured under the option 'changed_tags' in
> > the [new] section, the default is none. Tests have been updated to
> > accept the new config option.
> >
> > notmuch-setup now asks for a changed tag after the new tags question.
> >
> > This could be useful for for example 'afew' to detect remote changes
> in
> > IMAP folders and update the FolderNameFilter to also add tags or
> remove
> > tags when a _existing_ message has been added to or removed from a
> > maildir.
>
> The discussion on this proposal seems to have died out without reaching
> a conclusion. David M expressed a strong preference for some kind of
> modification time field in the database. Gaute agreed with some caveats
> that such an approach could solve his problems as well. On the other
> hand, nobody seems to be actually working on such an approach at the
> moment. Gaute and or David do you have any interest in revisiting the
> series [3]id:1323796305-28789-1-git-send-email-schnouki@schnouki.net and
> seeing if it can be reworked into mergeable shape? I suspect in
> particular something needs to be added with respect to message deletion
> Thomas, are you still running some variant of these patches?
> d
>
> I am afraid I don't have the chance to put in any consistent effort on
> this at the moment.
>
> I agree, message deletion needs to be solved somehow.
> Regards, Gaute
next prev parent reply other threads:[~2014-08-01 18:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-06 16:11 [PATCH] Add configurable changed tag to messages that have been changed on disk Gaute Hope
2014-04-06 20:19 ` David Mazieres
2014-04-10 14:43 ` Gaute Hope
2014-04-10 15:31 ` dm-list-email-notmuch
2014-04-10 21:10 ` Gaute Hope
2014-04-22 22:05 ` David Bremner
2014-04-23 7:24 ` Gaute Hope
2014-04-23 9:00 ` David Mazieres
2014-04-23 11:53 ` Gaute Hope
2014-04-23 20:59 ` Austin Clements
2014-04-23 22:31 ` dm-list-email-notmuch
2014-04-11 11:08 ` David Bremner
2014-04-11 16:03 ` dm-list-email-notmuch
2014-04-12 15:58 ` David Bremner
2014-05-03 14:01 ` Jani Nikula
2014-04-23 21:28 ` Austin Clements
2014-04-23 22:40 ` David Mazieres expires 2014-07-22 PDT
2014-07-03 10:42 ` David Bremner
2014-07-28 14:37 ` Gaute Hope
2014-08-01 18:55 ` Austin Clements [this message]
2014-08-02 0:49 ` Austin Clements
2014-08-06 9:02 ` Gaute Hope
2014-08-06 17:06 ` Austin Clements
[not found] ` <1407313144-astroid-0-vyhth1tcrd-3835@strange>
2014-09-22 12:06 ` Gaute Hope
2014-09-22 15:33 ` Tomi Ollila
2014-09-22 15:40 ` Austin Clements
2014-09-23 6:57 ` Gaute Hope
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140801185505.GS13893@mit.edu \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).