From: Andrew Cohen <cohen@andy.bu.edu>
To: ding@gnus.org
Subject: Re: Gnus search
Date: Thu, 21 Oct 2010 14:25:39 -0400 [thread overview]
Message-ID: <87sjzz9zdo.fsf@andy.bu.edu> (raw)
In-Reply-To: <87eibjbfb8.fsf@andy.bu.edu>
[-- Attachment #1: Type: text/plain, Size: 111 bytes --]
Untested patch. Can someone who doesn't have an nnir method set for
nnimap servers give this is a try?
Andy
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnimap auto search --]
[-- Type: text/x-diff, Size: 1220 bytes --]
diff --git a/lisp/nnir.el b/lisp/nnir.el
index 2a264d1..a6a561e 100644
--- a/lisp/nnir.el
+++ b/lisp/nnir.el
@@ -1606,7 +1606,10 @@ and concat the results."
search-func)
(setq search-func (cadr
(assoc
- (nnir-read-server-parm 'nnir-search-engine server) nnir-engines)))
+ (or (nnir-read-server-parm
+ 'nnir-search-engine server)
+ (when (eq 'nnimap (car
+ (gnus-server-to-method server))) 'imap)) nnir-engines)))
(if search-func
(funcall search-func q server x)
nil)))
@@ -1617,9 +1620,12 @@ and concat the results."
(if (and (equal (cadr x) 'ok) (not (equal (cadar x) "-ephemeral")))
(let ((server (format "%s:%s" (caar x) (cadar x)))
search-func)
- (setq search-func (cadr
- (assoc
- (nnir-read-server-parm 'nnir-search-engine server) nnir-engines)))
+ (setq search-func (cadr
+ (assoc
+ (or (nnir-read-server-parm
+ 'nnir-search-engine server)
+ (when (eq 'nnimap (car
+ (gnus-server-to-method server))) 'imap)) nnir-engines)))
(if search-func
(funcall search-func q server nil)
nil))
next prev parent reply other threads:[~2010-10-21 18:25 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 15:49 Lars Magne Ingebrigtsen
2010-10-21 16:04 ` Julien Danjou
2010-10-21 16:07 ` Lars Magne Ingebrigtsen
2010-10-21 16:24 ` Julien Danjou
2010-10-21 17:09 ` Andrew Cohen
2010-10-21 17:10 ` Tibor Simko
2010-10-21 17:12 ` Lars Magne Ingebrigtsen
2010-10-21 17:56 ` Andrew Cohen
2010-10-21 18:25 ` Andrew Cohen [this message]
2010-10-21 18:45 ` Ted Zlatanov
2010-10-21 19:00 ` Andrew Cohen
2010-10-22 14:24 ` Andrew Cohen
2010-10-23 7:01 ` Steinar Bang
2010-10-23 12:14 ` Andrew Cohen
2010-10-24 9:15 ` Steinar Bang
2010-10-25 18:34 ` Ted Zlatanov
2010-10-24 4:18 ` Lars Magne Ingebrigtsen
2010-10-21 18:00 ` Ted Zlatanov
2010-10-21 18:35 ` Andreas Seltenreich
2010-10-21 21:27 ` Steinar Bang
2010-10-27 11:36 ` Andrew Cohen
2010-10-27 12:32 ` Steinar Bang
2010-10-27 13:23 ` Dan Christensen
2010-10-27 13:25 ` Andrew Cohen
2010-10-27 17:41 ` Ted Zlatanov
2010-10-27 18:08 ` Andrew Cohen
2010-10-27 18:39 ` Ted Zlatanov
2010-10-28 10:27 ` Julien Danjou
2010-10-28 10:49 ` Andrew Cohen
2010-10-28 10:51 ` Julien Danjou
2010-10-29 6:34 ` nnir: Removing some search engines (was: Gnus search) Reiner Steib
2010-10-29 11:16 ` nnir: Removing some search engines Andrew Cohen
2010-10-29 12:57 ` Jose A. Ortega Ruiz
2010-10-27 20:15 ` Gnus search Jose A. Ortega Ruiz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjzz9zdo.fsf@andy.bu.edu \
--to=cohen@andy.bu.edu \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).