Re: [notmuch] Notmuch doesn't index new mails when mail location contains symlinks
authorTassilo Horn <tassilo@member.fsf.org>
Mon, 23 Nov 2009 15:01:41 +0000 (16:01 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:41 +0000 (09:35 -0800)
eb/a2d839892254e109f075dac839831e28668092 [new file with mode: 0644]

diff --git a/eb/a2d839892254e109f075dac839831e28668092 b/eb/a2d839892254e109f075dac839831e28668092
new file mode 100644 (file)
index 0000000..76fad7b
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <tassilo@member.fsf.org>\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 9D376431FBF\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 07:01:43 -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 JAu2kr6mG36p for <notmuch@notmuchmail.org>;\r
+       Mon, 23 Nov 2009 07:01:42 -0800 (PST)\r
+Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15])\r
+       by olra.theworths.org (Postfix) with ESMTP id C8761431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 07:01:42 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by deliver.uni-koblenz.de (Postfix) with ESMTP id 38C8578A23D5;\r
+       Mon, 23 Nov 2009 16:01:42 +0100 (CET)\r
+Received: from deliver.uni-koblenz.de ([127.0.0.1])\r
+       by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new,\r
+       port 10024)\r
+       with ESMTP id 20617-01; Mon, 23 Nov 2009 16:01:41 +0100 (CET)\r
+X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org\r
+Received: from thinkpad.tsdh.de (unknown [141.26.95.131])\r
+       by deliver.uni-koblenz.de (Postfix) with ESMTP id 8F0E878A2133;\r
+       Mon, 23 Nov 2009 16:01:41 +0100 (CET)\r
+From: Tassilo Horn <tassilo@member.fsf.org>\r
+To: Mikhail Gusarov <dottedmag@dottedmag.net>\r
+References: <87ws1hldmu.fsf@thinkpad.tsdh.de>\r
+       <87einpl50j.fsf@thinkpad.tsdh.de> <87ljhxjq5i.fsf@vertex.dottedmag>\r
+       <876391l2si.fsf@thinkpad.tsdh.de>\r
+Mail-Copies-To: never\r
+Date: Mon, 23 Nov 2009 16:01:41 +0100\r
+In-Reply-To: <876391l2si.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of\r
+       "Mon, 23 Nov 2009 15:43:41 +0100")\r
+Message-ID: <871vjpl1yi.fsf@thinkpad.tsdh.de>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Virus-Scanned: amavisd-new at uni-koblenz.de\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:01:43 -0000\r
+\r
+Tassilo Horn <tassilo@member.fsf.org> writes:\r
+\r
+Hi Mikhail,\r
+\r
+>>  TH> Whenever I delete those symlinks and created them anew, the new\r
+>>  TH> mails get indexed with the next "notmuch new".  Of course, I could\r
+>>  TH> create a script that does exactly that, but there should be a\r
+>>  TH> better way, right?\r
+>>\r
+>> Probably mail does not get indexed due to mtime checks. Please try\r
+>> whether touch'ing directory with mailboxes makes it work.\r
+>\r
+> No, it seems that doesn't help either.\r
+\r
+Ah, I'm stupid!  I don't have to touch the symlinks or the directories\r
+inside the locations the symlinks point to, but instead I have to touch\r
+the top-level directory where the symlinks are contained in.  Then it\r
+works as expected, AFAICT.\r
+\r
+Thanks a lot,\r
+Tassilo\r