From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72495 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: no Gnus v0.11, imap (cyrus) & nnir : 'Search produced empty results' Date: Mon, 04 Oct 2010 10:50:39 -0400 Message-ID: <87hbh2dnb4.fsf@maru.md5i.com> References: <87k4lycuay.fsf@hillenius.net> <8762xi8ld2.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1286203894 7191 80.91.229.12 (4 Oct 2010 14:51:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2010 14:51:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20867@lists.math.uh.edu Mon Oct 04 16:51:33 2010 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 1P2mNz-0007An-90 for ding-account@gmane.org; Mon, 04 Oct 2010 16:51:27 +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 1P2mNo-00067n-2o; Mon, 04 Oct 2010 09:51:16 -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 1P2mNm-00067X-Oz for ding@lists.math.uh.edu; Mon, 04 Oct 2010 09:51:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P2mNk-0002fF-GN for ding@lists.math.uh.edu; Mon, 04 Oct 2010 09:51:14 -0500 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P2mNi-0005cS-00 for ; Mon, 04 Oct 2010 16:51:11 +0200 Original-Received: from md5i by maru.md5i.com with local (Exim 4.72) (envelope-from ) id 1P2mND-0004VC-3s for ding@gnus.org; Mon, 04 Oct 2010 10:50:39 -0400 In-Reply-To: <8762xi8ld2.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Mon, 04 Oct 2010 09:31:37 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72495 Archived-At: --=-=-= Content-Type: text/plain Tassilo Horn writes: > Gijs Hillenius 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 *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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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) --=-=-= Content-Type: text/plain 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) --=-=-=--