From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85101 Path: news.gmane.org!not-for-mail From: Vincent Bernat Newsgroups: gmane.emacs.gnus.general Subject: Re: blog post on gnus, dovecot, and lucene Date: Wed, 08 Oct 2014 07:12:33 +0200 Message-ID: References: <87y4sszb70.fsf@ericabrahamsen.net> <878uks9ooo.fsf@zoro.exoscale.ch> <87iojvzvtk.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412766541 25100 80.91.229.3 (8 Oct 2014 11:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 11:09:01 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33345@lists.math.uh.edu Wed Oct 08 13:08:54 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xbp6z-0002zJ-Ip for ding-account@gmane.org; Wed, 08 Oct 2014 13:08:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Xbp6p-0004Na-Fj; Wed, 08 Oct 2014 06:08:43 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Xbp6n-0004NB-RO for ding@lists.math.uh.edu; Wed, 08 Oct 2014 06:08:41 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Xbp6m-0005rS-LH for ding@lists.math.uh.edu; Wed, 08 Oct 2014 06:08:41 -0500 Original-Received: from bart.luffy.cx ([78.47.78.131]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbp6i-0001Ou-Ei for ding@gnus.org; Wed, 08 Oct 2014 13:08:38 +0200 Original-Received: from bart.luffy.cx (localhost [127.0.0.1]) by bart.luffy.cx (Postfix) with ESMTP id 3066F140ED for ; Wed, 8 Oct 2014 07:12:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=postfix; bh=luz2zivCZ bVtFVT4g8Jb9w2C9jM=; b=dNdb/xSNl3A+Qf8frsE9OT4MVKEu84GDVWVr/AuPE k8oiQj2C3r/LaFPTxpJxjp7+SBSOSnfd9dxwkRFzWWkXQoGexiaCXmWd4vd3QuCa o8/sjvNC5XGFjttNCbgzVk7zge1p1idIFOPJk/fkr5/4sV6Gy88y9VJWwzQqb//r AU= DomainKey-Signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=postfix; b=XkJ 5gyIBHYNF/JuOr9lCuVAGzY3H9JIwpUekRumRVjgiKkai7Rq2QSotGEppqKK27hT DW1m39k6VbwXVnZe9STTNwFbYMug7CMrMm+IVKG1uUFpKws3pljGaWPFc1NEH/Q3 TqD+l7qaeGGWrabsLR+R6BEH86g81mx6NROUjR84= Original-Received: from neo.luffy.cx (180-121.76-83.cust.bluewin.ch [83.76.121.180]) by bart.luffy.cx (Postfix) with ESMTPS id E1AAF140CE for ; Wed, 8 Oct 2014 07:12:34 +0200 (CEST) Original-Received: by neo.luffy.cx (Postfix, from userid 500) id 2D431471; Wed, 8 Oct 2014 07:12:33 +0200 (CEST) In-Reply-To: <87iojvzvtk.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 08 Oct 2014 00:30:31 +0800") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85101 Archived-At: =E2=9D=A6 8 octobre 2014 00:30 +0800, Eric Abrahamsen =C2=A0: >> Note that you don't have to run dovecot as a server. You can run it as a >> process. In mbsyncrc:=20 >> >> Tunnel "/usr/lib/dovecot/imap -o mail_location=3Dmaildir:~/.mbsync/mails= /XXXXX" >> >> In Gnus: >> >> #+BEGIN_SRC elisp >> (nnimap-stream shell) >> (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=3Dmaildir:= ~/.mbsync/mails/XXXXX") >> #+END_SRC > > Yes, hence the section titled "The Problem" in that blog post :) Perhaps > I could have made that clearer! Oh, it was pretty clear but I didn't read from the beginning because I thought this was a post about reading mails offline with full text search available! ;-) > So far as I can tell, if you're calling dovecot as a process, you can't > integrate lucene text indexing -- that only works when running dovecot > as a daemon. > > In fact that was the whole impetus for the shift, and the blog post: > going from dovecot-the-process to dovecot-the-daemon, because of the > need for search indexing. I didn't notice that. I added that to my dovecot.conf: plugin { fts =3D lucene fts_lucene =3D whitespace_chars=3D@. } And the search became faster. However, I usually don't use FTS (only search on recipient or title). If I check right now, I notice that the indexes are not up-to-date. So, you may be right. --=20 Keep it simple to make it faster. - The Elements of Programming Style (Kernighan & Plauger)