Re: [notmuch] [PATCH] Handle rename of message file

Subject: Re: [notmuch] [PATCH] Handle rename of message file

Date: Wed, 18 Nov 2009 18:06:09 -0800

To: Carl Worth, Mikhail Gusarov, notmuch@notmuchmail.org

Cc:

From: Keith Packard


On Thu, 19 Nov 2009 02:08:15 +0100, Carl Worth <cworth@cworth.org> 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 that keeps fiddling with the filenames).

Checking for new files is easy; notmuch already does that, and so
handling renames doesn't seem all that difficult. The hard part to me is
detecting deleted messages; about the only thing I can imagine being at
all efficient is to use inotify in a daemon. Starting that daemon up
would entail scanning the database for all messages in a particular
directory and then looking for those files to see if they were still
around. Ick.

--
keith.packard@intel.com




part-000.sig (application/pgp-signature)

Thread: