[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Mikhail Gusarov
Twas brillig at 18:06:09 18.11.2009 UTC-08 when keithp at keithp.com did gyre and gimble: KP> Checking for new files is easy; notmuch already does that, and so KP> handling renames doesn't seem all that difficult. Except rename does not change mtime of file, and so it won't be picked up by

[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Mikhail Gusarov
Twas brillig at 02:08:15 19.11.2009 UTC+01 when cworth at cworth.org did gyre and gimble: CW> I believe you said in IRC that this patch is not ready yet. Yes. CW> I'd love to hear more from you on any experiments/ideas you have in CW> this area. It would be a really nice feature to have,

[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 02:51:18 +0600, Mikhail Gusarov wrote: > If message file has been renamed, just update filename in the DB. > > Signed-off-by: Mikhail Gusarov I believe you said in IRC that this patch is not ready yet. I'd love to hear more from you on any experiments/ideas you have in

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Keith Packard
On Thu, 19 Nov 2009 08:11:12 +0600, Mikhail Gusarov wrote: > > Twas brillig at 18:06:09 18.11.2009 UTC-08 when keithp at keithp.com did gyre > and gimble: > > KP> Checking for new files is easy; notmuch already does that, and so > KP> handling renames doesn't seem all that difficult. > >

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Keith Packard
On Thu, 19 Nov 2009 02:08:15 +0100, Carl Worth wrote: > I'd love to hear more from you on any experiments/ideas you have in this > area. It would be a really nice feature to have, (particularly for > people who are experimenting with notmuch while still using some other > primary email program

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Mikhail Gusarov
If message file has been renamed, just update filename in the DB. Signed-off-by: Mikhail Gusarov --- lib/database.cc | 21 - 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 3c8d626..c4eb8b6 100644 ---