From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64444 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.general Subject: Re: Broken IMAP search with nnir.el Date: Sun, 25 Mar 2007 22:42:01 +0200 Message-ID: <87k5x5kqcm.fsf@gate450.dyndns.org> References: <87ejnh1hts.fsf@baldur.tsdh.de> <87slbxicbh.fsf@mocca.josefsson.org> <873b3x1f3m.fsf@baldur.tsdh.de> <87odmkxba6.fsf@mocca.josefsson.org> <87odmhzx4i.fsf@gate450.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1174855412 25395 80.91.229.12 (25 Mar 2007 20:43:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2007 20:43:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M12968@lists.math.uh.edu Sun Mar 25 22:43:27 2007 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 1HVZYj-0007ab-I3 for ding-account@gmane.org; Sun, 25 Mar 2007 22:43:25 +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 1HVZXb-0002Io-86; Sun, 25 Mar 2007 15:42:15 -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 1HVZXZ-0002IG-1V for ding@lists.math.uh.edu; Sun, 25 Mar 2007 15:42:13 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HVZXS-0003aI-S8 for ding@lists.math.uh.edu; Sun, 25 Mar 2007 15:42:12 -0500 Original-Received: from smtp2.rz.uni-karlsruhe.de ([129.13.185.218] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HVZXR-0001dg-00 for ; Sun, 25 Mar 2007 22:42:06 +0200 Original-Received: from rzstud3.stud.uni-karlsruhe.de (rzstud3.stud.uni-karlsruhe.de [193.196.41.39]) by smtp2.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1HVZXR-0001DM-AX; Sun, 25 Mar 2007 22:42:05 +0200 Original-Received: from uwi7 by rzstud3.stud.uni-karlsruhe.de with local (Exim 4.43) id 1HVZXR-00008I-3a for ding@gnus.org; Sun, 25 Mar 2007 22:42:05 +0200 In-Reply-To: <87odmhzx4i.fsf@gate450.dyndns.org> (Andreas Seltenreich's message of "Sun\, 25 Mar 2007 07\:54\:21 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) X-Hashcash: 1:24:070325:ding@gnus.org::GAfpfFgNty9D46JK:Akun X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64444 Archived-At: --=-=-= I wrote: > Simon Josefsson writes: > >> I think it might be easier to have nnir never re-use article numbers. >> But I'm not familiar enough with nnir to fix this. > > I'm afraid this would break solid groups, which work ok for engines > that support ordering of returned articles by delivery-date or > something comparable instead of "Score". Actually, the same trick that nnweb uses to avoid caching anomalies with ephemeral groups could be applied to nnir as well. nnweb uses message-unique-id to generate names for ephemeral groups, and pushing such an id into nnir's query parameters has the same effect. Tassilo: Could you try to reproduce the problem with the attached patch? If the problem is actually caching related, the symptoms should disappear. regards, andreas --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable *** nnir.el 17 Jul 2006 17:14:52 +0200 7.19 --- nnir.el 25 M=C3=A4r 2007 22:21:01 +0200=09 *************** *** 294,299 **** --- 294,300 ---- (require 'nnoo) (require 'gnus-group) (require 'gnus-sum) + (require 'message) (eval-and-compile (require 'gnus-util)) (eval-when-compile *************** *** 610,615 **** --- 611,617 ---- (if extra-parms (setq parms (nnir-read-parms query)) (setq parms (list (cons 'query query)))) + (add-to-list 'parms (cons 'unique-id (message-unique-id)) t) (gnus-group-read-ephemeral-group (concat "nnir:" (prin1-to-string parms)) '(nnir "") t (cons (current-buffer) --=-=-=--