Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29971431FBC for ; Wed, 18 Nov 2009 19:12:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bOy5lBsTIy7p for ; Wed, 18 Nov 2009 19:12:56 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 095B5431FAE for ; Wed, 18 Nov 2009 19:12:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id E15EDB9404B; Wed, 18 Nov 2009 19:12:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XNAiTOzyxEem; Wed, 18 Nov 2009 19:12:51 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id E9A37B9402F; Wed, 18 Nov 2009 19:12:50 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id D9CCBB88003; Wed, 18 Nov 2009 19:12:50 -0800 (PST) From: Keith Packard To: Mikhail Gusarov , notmuch@notmuchmail.org In-Reply-To: <87pr7f1cxr.fsf@vertex.dottedmag> References: <1258491078-29658-1-git-send-email-dottedmag@dottedmag.net> <87bpiz724g.fsf@yoom.home.cworth.org> <87pr7f1cxr.fsf@vertex.dottedmag> Date: Wed, 18 Nov 2009 19:12:50 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] [PATCH] Handle rename of message file X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 03:12:57 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 19 Nov 2009 08:11:12 +0600, Mikhail Gusarov wrote: >=20 > Twas brillig at 18:06:09 18.11.2009 UTC-08 when keithp@keithp.com did gyr= e and gimble: >=20 > KP> Checking for new files is easy; notmuch already does that, and so > KP> handling renames doesn't seem all that difficult. >=20 > Except rename does not change mtime of file, and so it won't be picked > up by 'notmuch new'. Yeah, good point -- notmuch new doesn't make sure each file it finds is already in the database. Again, some kind of inotify-based daemon would make that efficient, while starting up that daemon could take some time while the database was searched for new or missing files. Alternatively, we could record the contents of the directory after scanning it and then use that to track file changes. It seems like the current database just doesn't have enough information to make this tractable. =2D- keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLBLeyQp8BWwlsTdMRAmxLAJ4+BQImlglHeuavWEYbXTIx5/LjtQCg2cT5 et6G1DjH8pAlDxMzDFnspiY= =33s2 -----END PGP SIGNATURE----- --=-=-=--