Re: [notmuch] Notmuch doesn't index new mails when mail location contains symlinks
authorJed Brown <jed@59A2.org>
Mon, 23 Nov 2009 15:03:00 +0000 (16:03 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:41 +0000 (09:35 -0800)
a5/8f87f458df9e1fafc27ec6206896be2b26c0c1 [new file with mode: 0644]

diff --git a/a5/8f87f458df9e1fafc27ec6206896be2b26c0c1 b/a5/8f87f458df9e1fafc27ec6206896be2b26c0c1
new file mode 100644 (file)
index 0000000..a05f8ef
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <five9a2@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B70BA431FBF\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 07:02:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 9OrubqNU9PgF for <notmuch@notmuchmail.org>;\r
+       Mon, 23 Nov 2009 07:02:32 -0800 (PST)\r
+Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com\r
+       [209.85.218.210])\r
+       by olra.theworths.org (Postfix) with ESMTP id DDDBC431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 07:02:31 -0800 (PST)\r
+Received: by bwz2 with SMTP id 2so5315709bwz.0\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 07:02:30 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:received:received:sender:from:to:cc:subject\r
+       :in-reply-to:references:date:message-id:mime-version:content-type;\r
+       bh=MRhkMd4enYkDgVHoyGVPvkGf7JK6gtMHHUGb9Gnn508=;\r
+       b=Y8YNrOMUflsk/DaaU/7PakJOoYYIhD52751CV1yxsmyZV4uOeBDf3UMx6ruSuQg5n1\r
+       tA/ldE79BRahCfwq+t3Wq7y+aphXd40+tCBWDHe1rV2NUaedjklaa2GmqdmR7VNRgA+B\r
+       cHP7UcOXlYuGEV6qx/6d8MOmn0uP6/maUFpIM=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=sender:from:to:cc:subject:in-reply-to:references:date:message-id\r
+       :mime-version:content-type;\r
+       b=aHHT/GOPjJgQDnGZuntXJXCF31w3w8UQw2ldb5liHOvvqC/H0qLAiq6ZzVo+H3S3h3\r
+       H2jXqLMcmLgx86P6e1ZTHGDpOsaM0mG3c+TnwsMC4cZoSv+lJhbTlUgX4kqCYOnX7Me0\r
+       TBcWH6XSpRugFyQYREweHDb5F2Rlts8jUSARo=\r
+Received: by 10.204.10.2 with SMTP id n2mr4668027bkn.91.1258988550061;\r
+       Mon, 23 Nov 2009 07:02:30 -0800 (PST)\r
+Received: from kunyang (vawpc43.ethz.ch [129.132.59.11])\r
+       by mx.google.com with ESMTPS id 18sm5823228fks.4.2009.11.23.07.02.28\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Mon, 23 Nov 2009 07:02:29 -0800 (PST)\r
+Sender: Jed Brown <five9a2@gmail.com>\r
+From: Jed Brown <jed@59A2.org>\r
+To: Tassilo Horn <tassilo@member.fsf.org>, Mikhail Gusarov\r
+       <dottedmag@dottedmag.net>\r
+In-Reply-To: <876391l2si.fsf@thinkpad.tsdh.de>\r
+References: <87ws1hldmu.fsf@thinkpad.tsdh.de>\r
+       <87einpl50j.fsf@thinkpad.tsdh.de> <87ljhxjq5i.fsf@vertex.dottedmag>\r
+       <876391l2si.fsf@thinkpad.tsdh.de>\r
+Date: Mon, 23 Nov 2009 16:03:00 +0100\r
+Message-ID: <87vdh1472z.fsf@59A2.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: [notmuch] Notmuch doesn't index new mails when mail location\r
+ contains symlinks\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 23 Nov 2009 15:02:32 -0000\r
+\r
+On Mon, 23 Nov 2009 15:43:41 +0100, Tassilo Horn <tassilo@member.fsf.org> wrote:\r
+> First, I only touched the two symlinks.\r
+\r
+Unfortunately, this actually touched the file pointed to by the symlink,\r
+if you stat the symlink you will see that mtime did not change.\r
+\r
+> This didn't help.  Then I used\r
+> "find . -type d | xargs touch" to touch all directories inside the\r
+> directories the symlinks point to.\r
+\r
+Actually, this would not have followed the symlinks so it does the same\r
+thing as before.  I think it is actually hard (or not possible) to\r
+change mtime on symlinks under Linux.\r
+\r
+> But still no luck.  Finally, I deleted the symlinks and created them\r
+> anew, and then it indexed the 12 new mails that arrived in the\r
+> meantime.\r
+\r
+If /var is on the same filesystem, you could use hard links instead of\r
+symlinks.  Otherwise I would just add the appropriate ln -sf in the hook\r
+before notmuch new.\r
+\r
+The real solution is for notmuch to check mtime of whatever the\r
+symlink's target.\r
+\r
+Jed\r