From: Michael Welsh Duggan <md5i@md5i.com>
To: ding@gnus.org
Subject: Re: no Gnus v0.11, imap (cyrus) & nnir : 'Search produced empty results'
Date: Mon, 04 Oct 2010 10:50:39 -0400 [thread overview]
Message-ID: <87hbh2dnb4.fsf@maru.md5i.com> (raw)
In-Reply-To: <8762xi8ld2.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 04 Oct 2010 09:31:37 +0200")
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
Tassilo Horn <tassilo@member.fsf.org> writes:
> Gijs Hillenius <gijs@hillenius.net> writes:
>
> Hi!
>
>> When I mark an Imap group with #, hit GG and enter a search term, the
>> search always fails with:
>>
>> "gnus-group-read-ephemeral-group: Couldn't request group: Search
>> produced empty results"
>
> I have the exact same issue with two Cyrus IMAP servers (my university
> and Fastmail). Unfortunately, these are all IMAP accounts I have, so I
> cannot say if it's Cyrus-specific or not.
>
> When trying to search using `G G searchterm RET' I have this text in the
> *imap log* buffer:
>
> 09:29:06 467 SELECT "INBOX.mailinglists.ding"
> 09:29:06 468 UID SEARCH TEXT "test"
> 09:29:07 469 SELECT "INBOX.mailinglists.ding"
> 09:29:07 470 UID SEARCH TEXT "test"
>
> In the relevant *nnimap <server> *nntpd** buffer (BTW: why in that
> *nntpd* in the name of the nnimap buffers for both of my servers?!?),
> there's:
>
> 466 BAD Invalid Search criteria
I've decided that this is a bug in Cyrus, but with a simple workaround
in gnus.
The following fails:
X UID SEARCH TEXT "test"
The following succeeds:
X UID SEARCH TEXT "test"
Note the one space difference. Here is a workaround patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 443 bytes --]
diff --git a/lisp/nnir.el b/lisp/nnir.el
index db8b397..d8c1a47 100644
--- a/lisp/nnir.el
+++ b/lisp/nnir.el
@@ -983,7 +983,7 @@ details on the language and supported extensions"
(message "Searching %s..." group)
(let ((arts 0)
(result
- (nnimap-command "UID SEARCH %s"
+ (nnimap-command "UID SEARCH %s"
(if (string= criteria "")
qstring
(nnir-imap-make-query criteria qstring)
[-- Attachment #3: Type: text/plain, Size: 177 bytes --]
There is still a problem, as I am getting failures when the search
returns several thousand entries, but I am looking into that next.
--
Michael Welsh Duggan
(md5i@md5i.com)
next prev parent reply other threads:[~2010-10-04 14:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 7:04 Gijs Hillenius
2010-10-04 7:31 ` Tassilo Horn
2010-10-04 14:50 ` Michael Welsh Duggan [this message]
2010-10-04 15:21 ` Michael Welsh Duggan
2010-10-04 16:08 ` Gijs Hillenius
2010-10-04 16:21 ` Michael Welsh Duggan
2010-10-04 16:46 ` Lars Magne Ingebrigtsen
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=87hbh2dnb4.fsf@maru.md5i.com \
--to=md5i@md5i.com \
--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).