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 B70BA431FBF for ; Mon, 23 Nov 2009 07:02:32 -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 9OrubqNU9PgF for ; Mon, 23 Nov 2009 07:02:32 -0800 (PST) Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com [209.85.218.210]) by olra.theworths.org (Postfix) with ESMTP id DDDBC431FAE for ; Mon, 23 Nov 2009 07:02:31 -0800 (PST) Received: by bwz2 with SMTP id 2so5315709bwz.0 for ; Mon, 23 Nov 2009 07:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=MRhkMd4enYkDgVHoyGVPvkGf7JK6gtMHHUGb9Gnn508=; b=Y8YNrOMUflsk/DaaU/7PakJOoYYIhD52751CV1yxsmyZV4uOeBDf3UMx6ruSuQg5n1 tA/ldE79BRahCfwq+t3Wq7y+aphXd40+tCBWDHe1rV2NUaedjklaa2GmqdmR7VNRgA+B cHP7UcOXlYuGEV6qx/6d8MOmn0uP6/maUFpIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=aHHT/GOPjJgQDnGZuntXJXCF31w3w8UQw2ldb5liHOvvqC/H0qLAiq6ZzVo+H3S3h3 H2jXqLMcmLgx86P6e1ZTHGDpOsaM0mG3c+TnwsMC4cZoSv+lJhbTlUgX4kqCYOnX7Me0 TBcWH6XSpRugFyQYREweHDb5F2Rlts8jUSARo= Received: by 10.204.10.2 with SMTP id n2mr4668027bkn.91.1258988550061; Mon, 23 Nov 2009 07:02:30 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id 18sm5823228fks.4.2009.11.23.07.02.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 07:02:29 -0800 (PST) Sender: Jed Brown From: Jed Brown To: Tassilo Horn , Mikhail Gusarov In-Reply-To: <876391l2si.fsf@thinkpad.tsdh.de> References: <87ws1hldmu.fsf@thinkpad.tsdh.de> <87einpl50j.fsf@thinkpad.tsdh.de> <87ljhxjq5i.fsf@vertex.dottedmag> <876391l2si.fsf@thinkpad.tsdh.de> Date: Mon, 23 Nov 2009 16:03:00 +0100 Message-ID: <87vdh1472z.fsf@59A2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] 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: Mon, 23 Nov 2009 15:02:32 -0000 On Mon, 23 Nov 2009 15:43:41 +0100, Tassilo Horn wrote: > First, I only touched the two symlinks. Unfortunately, this actually touched the file pointed to by the symlink, if you stat the symlink you will see that mtime did not change. > This didn't help. Then I used > "find . -type d | xargs touch" to touch all directories inside the > directories the symlinks point to. Actually, this would not have followed the symlinks so it does the same thing as before. I think it is actually hard (or not possible) to change mtime on symlinks under Linux. > 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. If /var is on the same filesystem, you could use hard links instead of symlinks. Otherwise I would just add the appropriate ln -sf in the hook before notmuch new. The real solution is for notmuch to check mtime of whatever the symlink's target. Jed