From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BF5D8431FBC; Thu, 26 Nov 2009 10:34:26 -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 a-RnxLDRNTLG; Thu, 26 Nov 2009 10:34:26 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D8A3B431FAE; Thu, 26 Nov 2009 10:34:25 -0800 (PST) From: Carl Worth To: Jed Brown , Tassilo Horn , Mikhail Gusarov In-Reply-To: <87vdh1472z.fsf@59A2.org> References: <87ws1hldmu.fsf@thinkpad.tsdh.de> <87einpl50j.fsf@thinkpad.tsdh.de> <87ljhxjq5i.fsf@vertex.dottedmag> <876391l2si.fsf@thinkpad.tsdh.de> <87vdh1472z.fsf@59A2.org> Date: Thu, 26 Nov 2009 10:34:12 -0800 Message-ID: <871vjlrv8b.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: Notmuch doesn't index new mails when mail location contains symlinks 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, 26 Nov 2009 18:34:26 -0000 On Mon, 23 Nov 2009 16:03:00 +0100, Jed Brown wrote: > > But still no luck. Finally, I deleted the symlinks and created them > > anew, and then it indexed the 12 new mails that arrived in the > > meantime. OK. So that's definitely a bug we need to fix. > The real solution is for notmuch to check mtime of whatever the > symlink's target. I'm a little confused here. Notmuch only uses stat, so it should be looking at the target's mtime already. It actually takes special effort (via lstat) to get at the mtime of the link itself. So why aren't things just working? -Carl