Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-09-23 Thread Gaute Hope
22. sep. 2014 17:40 skrev Austin Clements acleme...@csail.mit.edu følgende: On Mon, 22 Sep 2014, Gaute Hope e...@gaute.vetsj.com wrote: Excerpts from Gaute Hope's message of August 6, 2014 10:29: Austin Clements amdra...@mit.edu wrote on Fri, 01 Aug 2014 14:55:05 -0400: I have a prototype

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-09-22 Thread Gaute Hope
Excerpts from Gaute Hope's message of August 6, 2014 10:29: Austin Clements amdra...@mit.edu wrote on Fri, 01 Aug 2014 14:55:05 -0400: 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

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-09-22 Thread Tomi Ollila
On Mon, Sep 22 2014, Gaute Hope e...@gaute.vetsj.com wrote: Excerpts from Gaute Hope's message of August 6, 2014 10:29: Austin Clements amdra...@mit.edu wrote on Fri, 01 Aug 2014 14:55:05 -0400: I have a prototype implementation of message modification times on my lastmod-v1 branch at

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-09-22 Thread Austin Clements
On Mon, 22 Sep 2014, Gaute Hope e...@gaute.vetsj.com wrote: Excerpts from Gaute Hope's message of August 6, 2014 10:29: Austin Clements amdra...@mit.edu wrote on Fri, 01 Aug 2014 14:55:05 -0400: I have a prototype implementation of message modification times on my lastmod-v1 branch at

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-08-06 Thread Gaute Hope
On Fri, Aug 1, 2014 at 8:55 PM, Austin Clements amdra...@mit.edu wrote: 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

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-08-01 Thread Austin Clements
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

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-08-01 Thread Austin Clements
I should add that this code shouldn't be considered stable yet. The on-disk format may (and probably will) change, so don't try it on your main notmuch database. Quoth myself on Aug 01 at 2:55 pm: I have a prototype implementation of message modification times on my lastmod-v1 branch at

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-07-28 Thread Gaute Hope
On Thu, Jul 3, 2014 at 12:42 PM, David Bremner da...@tethera.net wrote: Gaute Hope e...@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

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-07-03 Thread David Bremner
Gaute Hope e...@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.

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-05-03 Thread Jani Nikula
On Sat, 12 Apr 2014, David Bremner da...@tethera.net wrote: dm-list-email-notm...@scs.stanford.edu writes: As far as updating the test suite, etc., it's almost certain that the core notmuch developers would be unsatisfied with whatever I've done, since the code base is very clean and has a

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-24 Thread David Mazieres expires 2014-07-22 PDT
Austin Clements amdra...@mit.edu writes: I'd like to have efficient change detection, too. In my case, I'd like to use it to support efficient live search and show updates. The design I'd sketched out for that used a log rather than ctimes, and I'm curious if you have thoughts on the

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread Gaute Hope
Excerpts from David Bremner's message of 2014-04-23 00:05:02 +0200: Gaute Hope e...@gaute.vetsj.com writes: I am talking about syncing tags to a maildir _folder_, not flags. It could be implemented as maildir.synchronize is now, but it would be a larger feature which could work in a lot

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread David Mazieres
Gaute Hope e...@gaute.vetsj.com writes: A db-tick or a _good_ ctime solution can as far as I can see solve both David M's (correct me if I am wrong) and my purposes, as well as probably have more use cases in the future. It would even be an interesting direct search: show me everything that

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread Gaute Hope
Excerpts from David Mazieres's message of 2014-04-23 11:00:10 +0200: Gaute Hope e...@gaute.vetsj.com writes: A db-tick or a _good_ ctime solution can as far as I can see solve both David M's (correct me if I am wrong) and my purposes, as well as probably have more use cases in the future.

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread Austin Clements
Hi Dave! Quoth David Mazieres on Apr 23 at 2:00 am: Gaute Hope e...@gaute.vetsj.com writes: A db-tick or a _good_ ctime solution can as far as I can see solve both David M's (correct me if I am wrong) and my purposes, as well as probably have more use cases in the future. It would even

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread Austin Clements
Quoth David Mazieres on Apr 06 at 10:19 pm: Gaute Hope e...@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

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-23 Thread dm-list-email-notmuch
Austin Clements amdra...@mit.edu writes: A middle ground might be to use the maximum of two values: 1) the time-of-day at which notmuch started executing, and 2) the highest ctime in the database plus 100 microseconds (leaving plenty of slop to store timestamps as IEEE doubles with 52

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-22 Thread David Bremner
Gaute Hope e...@gaute.vetsj.com writes: I am talking about syncing tags to a maildir _folder_, not flags. It could be implemented as maildir.synchronize is now, but it would be a larger feature which could work in a lot of different ways. So to try and clarify the use case, this could be

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-12 Thread David Bremner
dm-list-email-notm...@scs.stanford.edu writes: As far as updating the test suite, etc., it's almost certain that the core notmuch developers would be unsatisfied with whatever I've done, since the code base is very clean and has a very uniform style. So when I say I'd want some indication

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-11 Thread David Bremner
dm-list-email-notm...@scs.stanford.edu writes: Gaute Hope e...@gaute.vetsj.com writes: Exactly. It could be a tick, or just the current time of day if your clock does not go backwards. (I'd be willing to do a full scan if the clock ever goes backwards.) The advantage of time is that you

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-11 Thread dm-list-email-notmuch
David Bremner da...@tethera.net writes: Exactly. It could be a tick, or just the current time of day if your clock does not go backwards. (I'd be willing to do a full scan if the clock ever goes backwards.) The advantage of time is that you don't have to synchronously update some counter.

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-10 Thread dm-list-email-notmuch
Gaute Hope e...@gaute.vetsj.com writes: A better approach would be to add a new modtime xapian value that is updated whenever the tags or any other terms (such as XFDIRENTRY) are added to or deleted from a docid. If it's a Xapian value, rather than a term, then modtime will be queriable just

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-10 Thread Gaute Hope
Excerpts from dm-list-email-notmuch's message of 2014-04-10 17:31:04 +0200: Gaute Hope e...@gaute.vetsj.com writes: A better approach would be to add a new modtime xapian value that is updated whenever the tags or any other terms (such as XFDIRENTRY) are added to or deleted from a docid.

Re: [PATCH] Add configurable changed tag to messages that have been changed on disk

2014-04-06 Thread David Mazieres
Gaute Hope e...@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.