From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68422 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Indexing Gnus (and other...) mails Date: Thu, 09 Apr 2009 20:34:43 +0200 Message-ID: <87y6u9y8u4.fsf@thinkpad.tsdh.de> References: <87y6ubo5th.fsf@an-dro.enstb.org> <87ab6rbi5p.fsf@thinkpad.tsdh.de> <86ab6rypnt.fsf@lifelogs.com> <87vdpfkniv.fsf@thinkpad.tsdh.de> <87ocv6uwko.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239302433 4127 80.91.229.12 (9 Apr 2009 18:40:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2009 18:40:33 +0000 (UTC) Cc: Ding Mailing List To: Ted Zlatanov Original-X-From: ding-owner+M16858@lists.math.uh.edu Thu Apr 09 20:41:51 2009 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.50) id 1Lrz7r-0003Cq-KY for ding-account@gmane.org; Thu, 09 Apr 2009 20:37:23 +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 1Lrz5V-0001WJ-Dq; Thu, 09 Apr 2009 13:34:57 -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 1Lrz5T-0001Vu-C5 for ding@lists.math.uh.edu; Thu, 09 Apr 2009 13:34:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Lrz5N-000735-0J for ding@lists.math.uh.edu; Thu, 09 Apr 2009 13:34:55 -0500 Original-Received: from out2.smtp.messagingengine.com ([66.111.4.26]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Lrz5m-0007Wr-00 for ; Thu, 09 Apr 2009 20:35:14 +0200 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 656C23151E7; Thu, 9 Apr 2009 14:34:47 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 09 Apr 2009 14:34:47 -0400 X-Sasl-enc: NEBN8VMCv0gDgSBZuoqc+mwwycWYOrCiZ62KdXr8/aBi 1239302086 Original-Received: from thinkpad.tsdh.de (p54AF2810.dip0.t-ipconnect.de [84.175.40.16]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D56F4C02A; Thu, 9 Apr 2009 14:34:45 -0400 (EDT) Mail-Copies-To: never Mail-Followup-To: Ted Zlatanov , Ding Mailing List In-Reply-To: <87ocv6uwko.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 09 Apr 2009 09:15:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68422 Archived-At: Tassilo Horn writes: > And for speading up searches in the whole message including BODY, > dovecot offers plugins: > > http://wiki.dovecot.org/Plugins/FTS > > So I'd love to see a better support for IMAP SEARCH in Gnus. nnir > works, but sometimes it's a bit humpy. For example if I search for a > string the second time each result message appears two times in the > search result group. > > And what bothers me most: When I want to see a result message in the > original group (I want to reply using the groups posting styles and > parameters) I hit G T on the message (gnus-summary-nnir-goto-thread) > but then I'm queried for my username / password for the local imap > server. Those informations are already in my .authinfo... Ok, I have fixed that for me like by redefining g-s-n-g-t like that: --8<---------------cut here---------------start------------->8--- (defun gnus-summary-nnir-goto-thread () "Redefines the function from nnir.el." (interactive) (unless (eq 'nnir (car (gnus-find-method-for-group gnus-newsgroup-name))) (error "Can't execute this command unless in nnir group.")) (let* ((cur (gnus-summary-article-number)) (group (nnir-artlist-artitem-group nnir-artlist cur)) (mid (mail-header 'message-id (progn (gnus-summary-select-article t) (with-current-buffer gnus-article-buffer (goto-char (point-min)) (mail-header-extract-no-properties)))))) (gnus-group-read-group 1 t group nil) (gnus-summary-refer-article mid) (gnus-summary-refer-thread) ;; TODO: Is there nothing like limiting to the current thread? )) --8<---------------cut here---------------end--------------->8--- This works good for me and maybe it's the right approach, too. I don't quite understand why nnir uses an epheneral group and black article number magic while Gnus will do the right thing given a message-id anyway. Comments? Bye, Tassilo