From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 58C90431FBC for ; Sat, 21 Nov 2009 11:36:20 -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 2-fvXAY2r36o for ; Sat, 21 Nov 2009 11:36:18 -0800 (PST) Received: from sirius.lasnet.de (sirius.lasnet.de [78.47.116.19]) by olra.theworths.org (Postfix) with ESMTP id 68488431FAE for ; Sat, 21 Nov 2009 11:36:18 -0800 (PST) Received: from p5b034af6.dip.t-dialin.net ([91.3.74.246] helo=excalibur) by sirius.lasnet.de with esmtpsa (Cipher TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63 #1) id 1NBvkc-0002cH-EN by authid with cram_md5; Sat, 21 Nov 2009 20:36:16 +0100 Received: from stefan by excalibur with local (Exim 4.69) (envelope-from ) id 1NBvkc-0006p5-9x; Sat, 21 Nov 2009 20:36:06 +0100 Date: Sat, 21 Nov 2009 20:36:06 +0100 From: Stefan Schmidt To: Carl Worth Message-ID: <20091121193606.GD24602@excalibur.local> References: <20091121145111.GB19397@excalibur.local> <87fx874xj5.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fx874xj5.fsf@yoom.home.cworth.org> X-Mailer: Mutt http://www.mutt.org/ X-KeyID: 0xDDF51665 X-Website: http://www.datenfreihafen.org/ User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: 25 minutes load time with emacs -f 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: Sat, 21 Nov 2009 19:36:20 -0000 Hello. On Sat, 2009-11-21 at 18:07, Carl Worth wrote: > On Sat, 21 Nov 2009 15:51:11 +0100, Stefan Schmidt wrote: > > Disclaimer: I'm using vim, in combination with mutt for email, for years, but > > never dealt with emacs. Please have this in mind and spot any emacs user errors > > in this report. :) > > Hi Stefan, welcome to Notmuch! And don't worry, we don't discriminate > (too much) against non-emacs users around here. :) > > I have first seen notmuch several weeks ago as it seems a silent project. Being > > more then happy now that it envolves quickly and a real developer community > > builds around it. > > Yes. Notmuch was a silent project since it was just something that I was > doing for myself. I was always writing it as free software, and even had > a public git repository available, but hadn't advertised it at all yet. Yup, I had the repo on my disk a week before Keith blogged about it. Just nice that it was going crazy that fast and people start using it and contributing to it. > > But now to my problem. Getting m mail indexed was easy enough: > > > > stefan@excalibur:~$ du -chs not-much-mail/ > > 1.5G not-much-mail/ > > 1.5G total > > stefan@excalibur:~$ time notmuch new > > Found 103677 total files. > > Processed 103677 total files in 42m 30s (40 files/sec.). > > Added 100899 new messages to the database (not much, really). > > Good. I'm glad that went fairly smoothly for you. > > Though, frankly, I think we need to fix "notmuch new" to do much better > than 40 files/sec. As a sidenote. That one is on a notebook with a slow 5400 disk and crypt + lvm + ext3 on top. Perhaps I should put some money back for an X25 SSD. ;) > > I put (require 'notmuch) in my ~/.emacs ans start emacs with the -f notmuch > > option to enter the notmuch mode. > > I'm glad you've figured that much out. I feel bad that that's not even > in the documentation anywhere yet. I have to admit it took me some time. Something like below should help? > > What happends then is that a notmuch process gets started and emacs > > waits for the return. > > OK. This is a known shortcoming. As Bdale supposes, this problem is from > notmuch trying to load and construct every thread in your > database. There are actually several different bugs/missing features > here that should be addressed: > > * "notmuch new" should look at the R flag in maildir files to > determine that they are read and do not need to be marked as "inbox" > and "unread" I think that's what I will try to get working here. Sounds the nearest solution to my problem. That in combination with the just merged tags-based-on-folders patch should make me a lot happier. :) >From 8f95e039e98addd0f4be7c31e41e534f1b519a5d Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Sat, 21 Nov 2009 20:31:55 +0100 Subject: [PATCH] INSTALL: emacs install dokumentation. Write down the steps needed to install and actuall use notmuch in emacs. Should help emacs newbies. Signed-off-by: Stefan Schmidt --- INSTALL | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/INSTALL b/INSTALL index de268b6..64b8e36 100644 --- a/INSTALL +++ b/INSTALL @@ -14,6 +14,14 @@ Notmuch are satisfied. If they are not, the configure script will notice that and provide instructions on where to obtain the necessary dependencies. +notmuch.el installation +----------------------- +Installing the notmuch.el emacs lisp function systemwide: + + sudo make install-emacs + +Each user needs to add (require 'notmuch) in his ~/.emacs to activate it. + Dependencies ------------ Notmuch depends on three libraries: Xapian, GMime 2.4, and Talloc -- 1.6.5.3 regards Stefan Schmidt