From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Notmuch: An emacs interface for fast global search and tagging of email Date: Thu, 19 Nov 2009 15:26:20 +0100 Message-ID: References: <87d43gqf1t.fsf@yoom.home.cworth.org> <857929.5376.qm@web28310.mail.ukl.yahoo.com> <7A89F1FA-6DCC-43BE-8937-6715706B1CBC@gmail.com> <87zl6j5q44.fsf@yoom.home.cworth.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB7yO-0003c7-TK for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 09:27:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB7yI-0003YJ-7u for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 09:26:59 -0500 Received: from [199.232.76.173] (port=46243 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB7yG-0003Wl-0P for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 09:26:52 -0500 Received: from lo.gmane.org ([80.91.229.12]:59501) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NB7yE-0000tr-BT for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 09:26:50 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NB7yA-00028n-AD for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 15:26:46 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2009 15:26:46 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2009 15:26:46 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carl Worth writes: > On Wed, 18 Nov 2009 18:39:03 +0100, Carsten Dominik wrote: >> this sounds interesting, but I'd like to know: >> what is the difference with, for example mh-search, or mairix? > > I'm not familiar with mh-search, so I can't comment there. > > As for mairix, I think a big improvement that notmuch has is its search > syntax, (including phrase-based searching). With notmuch searches look > like this: > > notmuch search from:carsten.dominik and mairix > notmuch search subject:"emacs interface" and "Carl Worth" > notmuch search tag:important > > Of course, that all falls out almost entirely due to just being based on > Xapian. > > Mairix has the interesting mode of being able to deliver search results > as a maildir of symlinks. We might add something like that to notmuch. > > Some things that notmuch has that mairix doesn't and that aren't related > just to general Xapian features: > > * A "notmuch show" command that does proper threading/nesting of > messages. > > * The ability to add/remove arbitrary tags to any message and use them > in search terms later. > > * An emacs interface to display search results, quickly filter search > results by adding a term, display a thread from the search-results > view, start composing a reply from a thread view, etc. > > I haven't compared performance and scalability of mairix and notmuch. > And all of the above is just from my own recollection of using mairix > for a few months so I may have gotten some details wrong. > I just thought (for completeness) I might mention Dovecot IMAP indexing at this stage since I know a good few here use gnus and IMAP : thanks to Tassilo Horn for the heads up about it. My select element is:- gnus-select-method '(nnimap "mymail" (nnimap-stream tls) (nnimap-authinfo-file "~/.authinfo.gpg") (nnimap-address "my-server.net") (nnimap-expunge-on-close always) (nnimap-nov-is-evil nil) (nnir-search-engine imap)) Note the nnir-search component. Then a key to control it:- ;; Fast index based mail search on nnmairix server. (define-key gnus-group-mode-map (kbd "") 'gnus-group-make-nnir-group) And finally the Dovecot config (/etc/dovecot/dovecot.conf):- protocol imap { mail_plugins = fts fts_squat listen = *:143 ssl_listen = *:993 } plugin { fts = squat fts_squat = partial=4 full=10 } It will index when you first search that group. regards r.