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 66A9C431FBF; Sun, 22 Nov 2009 20:30:38 -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 8IXL5uaiBCst; Sun, 22 Nov 2009 20:30:37 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 70FB9431FAE; Sun, 22 Nov 2009 20:30:37 -0800 (PST) From: Carl Worth To: Tassilo Horn , notmuch@notmuchmail.org In-Reply-To: <877hti71f4.fsf@thinkpad.tsdh.de> References: <877hti71f4.fsf@thinkpad.tsdh.de> Date: Mon, 23 Nov 2009 05:30:23 +0100 Message-ID: <87my2dg8ww.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] How to index /var/spool/mail with notmuch 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 04:30:38 -0000 On Sun, 22 Nov 2009 21:24:47 +0100, Tassilo Horn wrote: > But I get some permission problems when trying to index /var/spool/mail. > I was able to create a .notmuch/ directory in there with permissions set > to 700 for my user. All mail files are readable for my user. > > Unfortunately, there are some dovecot internal files, which should > neither be indexed by notmuch, and which have 600 permissions for the > mail user. And that's where notmuch errors and stops indexing. :-( Hi Tassilo, welcome to notmuch! I'm glad you found a workaround for this problem, (thanks Jed!). But perhaps these errors should be made into warnings instead? Any thoughts on that anyone? > All "real" mail files are named "u.", so it would be cool if I > could provide a pattern to notmuch matching all files I'd like to index. > And maybe the other way round (a blacklist pattern) would be useful, > too. I've been planning on having a blacklist pattern for a while. Originally, the only difficulty in implementing it was that we had nowhere to store configuration information. But we have a configuration file now, so this would be a pretty easy thing to implement. It's not as obvious that a whitelist pattern would be as widely useful, but it would be possible too. -Carl