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 90D5340BC23 for ; Sun, 8 Aug 2010 06:53:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham 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 skLchT--6T08 for ; Sun, 8 Aug 2010 06:53:19 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id A8D9040BC22 for ; Sun, 8 Aug 2010 06:53:19 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 1F3B519F3358; Sun, 8 Aug 2010 15:53:18 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id hWtnVhf4nZgo; Sun, 8 Aug 2010 15:53:16 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id E07AE19F3357; Sun, 8 Aug 2010 15:53:16 +0200 (CEST) Received: from steelpick.2x.cz (ip-85-161-96-198.eurotel.cz [85.161.96.198]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id E30CAFA00E; Sun, 8 Aug 2010 15:53:11 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1Oi6Iz-0002j5-6n; Sun, 08 Aug 2010 15:52:49 +0200 From: Michal Sojka To: Stephen Paul Weber , notmuch@notmuchmail.org Subject: Re: A problem and a suggestion In-Reply-To: <20100806170410.GA1526@singpolyma-svelti> References: <20100806170410.GA1526@singpolyma-svelti> User-Agent: Notmuch/0.3.1-80-g86b7c46 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Sun, 08 Aug 2010 15:52:49 +0200 Message-ID: <87d3ttfbym.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sun, 08 Aug 2010 13:53:30 -0000 On Fri, 06 Aug 2010, Stephen Paul Weber wrote: > Anyway. I installed notmuch a few days ago (0.1), ran the setup, ran > notmuch new and i said it found 30000+ files, but no new mail? No searches > return any results. What am I doing wrong? Hi Stephen, I guess you have your mails in a wrong fomrat. Do you see "Note: Ignoring non-mail file" messages during notmuch new? You may also try notmuch new --verbose. > How does notmuch determine which mail is "new" anyway? New is a message found on your disk with a message-id not stored in notmuch database. > I gather by other threads on the list archives that editing a message > does not make it "new"? So notmuch just gets whatever the first > version of the message contents it sees is? And if the file gets > renamed (by mutt for example, when marked as read) the filename stored > by notmuch would then be wrong? Yes. AFAIK notmuch assumes that messages are immutable and when you edit the message, notmuch doesn't re-index it. Notmuch new code is able to detect renames so if you rename the file, the filename in the database is wrong only until you run notmuch new again. > I'd also like to suggest that notmuch index the Keywords header, since that > is a header meant exactly for being indexed by search engines and for > searching on. I use it quite a bit. This is an often requested feature - everyone has its favorite header which he wants to index. Indexing custom headers is planned for some future release, but no code has appeared yet. > This would be especially useful if notmuch re-indexed a message when I > edit this header. I'm not sure how hard it would be to implement this and what would be the performance implications. You should store modification time of a message in the database and re-index the file when the mtime on disk in newer than in the database. > > Actually, how hard would it be to allow notmuch to be configured to index > any custom header? Not much :-) -Michal