Re: [notmuch] How to index /var/spool/mail with notmuch
authorTassilo Horn <tassilo@member.fsf.org>
Mon, 23 Nov 2009 07:42:09 +0000 (08:42 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:41 +0000 (09:35 -0800)
2b/163af1c2f59f9d31cc31c91d05dd4902dd2769 [new file with mode: 0644]

diff --git a/2b/163af1c2f59f9d31cc31c91d05dd4902dd2769 b/2b/163af1c2f59f9d31cc31c91d05dd4902dd2769
new file mode 100644 (file)
index 0000000..dead990
--- /dev/null
@@ -0,0 +1,99 @@
+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 2AEE1431FC0\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 23:42:14 -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 l2gU75IyjZba for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Nov 2009 23:42:13 -0800 (PST)\r
+Received: from mout.perfora.net (mout.perfora.net [74.208.4.194])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6E8BB431FBC\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 23:42:13 -0800 (PST)\r
+Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15])\r
+       by mx.perfora.net (node=mxus0) with ESMTP (Nemesis)\r
+       id 0MN2S8-1NEeLs1CvY-007EOf for notmuch@notmuchmail.org;\r
+       Mon, 23 Nov 2009 02:42:12 -0500\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by deliver.uni-koblenz.de (Postfix) with ESMTP id 48A8578A30BD;\r
+       Mon, 23 Nov 2009 08:42:10 +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 02871-10; Mon, 23 Nov 2009 08:42:09 +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 A550078A30BB;\r
+       Mon, 23 Nov 2009 08:42:09 +0100 (CET)\r
+From: Tassilo Horn <tassilo@member.fsf.org>\r
+To: Carl Worth <cworth@cworth.org>\r
+References: <877hti71f4.fsf@thinkpad.tsdh.de>\r
+       <87my2dg8ww.fsf@yoom.home.cworth.org>\r
+Date: Mon, 23 Nov 2009 08:42:09 +0100\r
+In-Reply-To: <87my2dg8ww.fsf@yoom.home.cworth.org> (Carl Worth's message of\r
+       "Mon, 23 Nov 2009 05:30:23 +0100")\r
+Message-ID: <87fx85it66.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] How to index /var/spool/mail with notmuch\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 07:42:14 -0000\r
+\r
+Carl Worth <cworth@cworth.org> writes:\r
+\r
+Hi Carl,\r
+\r
+>> Unfortunately, there are some dovecot internal files, which should\r
+>> neither be indexed by notmuch, and which have 600 permissions for the\r
+>> mail user.  And that's where notmuch errors and stops indexing. :-(\r
+>\r
+> Hi Tassilo, welcome to notmuch!\r
+>\r
+> I'm glad you found a workaround for this problem, (thanks Jed!).\r
+\r
+Trying out notmuch already cashed out. ;-)\r
+\r
+> But perhaps these errors should be made into warnings instead? Any\r
+> thoughts on that anyone?\r
+\r
+I think so.  For other dovecot internal index files it already says\r
+something like "Ignoring non-mail file foobar.idx" and simply skips that\r
+file.  I think that's the right thing to do for files where it has no\r
+read permissions for, too.\r
+\r
+>> All "real" mail files are named "u.<number>", so it would be cool if\r
+>> I could provide a pattern to notmuch matching all files I'd like to\r
+>> index.  And maybe the other way round (a blacklist pattern) would be\r
+>> useful, too.\r
+>\r
+> I've been planning on having a blacklist pattern for a while.\r
+> Originally, the only difficulty in implementing it was that we had\r
+> nowhere to store configuration information.  But we have a\r
+> configuration file now, so this would be a pretty easy thing to\r
+> implement.\r
+>\r
+> It's not as obvious that a whitelist pattern would be as widely\r
+> useful, but it would be possible too.\r
+\r
+Well, for dovecot users using the dbox format, a whitelist pattern would\r
+be much simpler because of the coherent mail file naming.  But I could\r
+live with a blacklist pattern, too.\r
+\r
+Bye,\r
+Tassilo\r