From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78379 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH 2/2] nnir.el: New `notmuch' backend. Date: Wed, 06 Apr 2011 08:22:45 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87mxk3qztm.fsf@lifelogs.com> References: <1301842105-18495-1-git-send-email-kanru@kanru.info> <1301842105-18495-2-git-send-email-kanru@kanru.info> <87tyeeb098.fsf@lifelogs.com> <87hbad1pes.fsf@anar.kanru.info> <874o6c7on7.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302096315 27905 80.91.229.12 (6 Apr 2011 13:25:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2011 13:25:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26683@lists.math.uh.edu Wed Apr 06 15:25:12 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7SjP-0004hX-6n for ding-account@gmane.org; Wed, 06 Apr 2011 15:25:11 +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 1Q7SjN-0001Mm-A1; Wed, 06 Apr 2011 08:25:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Q7SjM-0001MZ-1X for ding@lists.math.uh.edu; Wed, 06 Apr 2011 08:25:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q7SjJ-0003Oy-D9 for ding@lists.math.uh.edu; Wed, 06 Apr 2011 08:25:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q7SjI-0006wV-MF for ding@gnus.org; Wed, 06 Apr 2011 15:25:04 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q7SjI-0004bI-KO for ding@gnus.org; Wed, 06 Apr 2011 15:25:04 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2011 15:25:04 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2011 15:25:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:XMup+DVdscfqHx59dRyNqhjAnIM= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78379 Archived-At: On Wed, 06 Apr 2011 08:08:24 +0200 Erik Colson wrote: EC> One remaining issue is searching the mailboxes through the IMAP EC> server. It works, but it is slow due to the slowness of the IMAP EC> server. So my wish would be to have a _local_ index of the distant mail EC> on the IMAP server, without having a local cache of all the mails. EC> Probably it would be preferable to have a separate process running a EC> IMAP client which would read all new mails and index them locally. If EC> anyone knows of such a software, please tell me! It's probably easier to use the Gnus registry for local searching after the recent rewrite. For instance there's a `gnus-registry-wash-for-keywords' function which will store all the keywords for an article in the registry, and IIRC nnir has some glue for it as well. Once you are tracking keywords (set up with `gnus-registry-track-extra'), any keywords noticed in an article will end up indexed. So then you just say (registry-lookup-secondary-value gnus-registry-db 'keyword "thekeyword") and you'll get a list of message IDs (which you can then look up to get the group). The nice thing is that when you set this up, it works anytime you visit a group so it doesn't require external processes or indices. And it's using hashtables so it's a very fast lookup. It would not be hard to use the notmuch keywords instead of the keywords from the article body, if they are in the headers or connected to the message ID somehow. But I don't know notmuch well enough to do it. Ted