From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79552 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: thread referral and nnir Date: Sat, 23 Jul 2011 22:18:18 -0400 Message-ID: <874o2cbevp.fsf@andy.bu.edu> References: <87ei1hc5mm.fsf@andy.bu.edu> <8762msdfy5.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311473955 22075 80.91.229.12 (24 Jul 2011 02:19:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 02:19:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27848@lists.math.uh.edu Sun Jul 24 04:19:12 2011 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 1QkoHe-0004S7-6A for ding-account@gmane.org; Sun, 24 Jul 2011 04:19:10 +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 1QkoH7-0001P7-Qp; Sat, 23 Jul 2011 21:18:37 -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 1QkoH4-0001Oo-PU for ding@lists.math.uh.edu; Sat, 23 Jul 2011 21:18:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QkoH2-0002ud-TG for ding@lists.math.uh.edu; Sat, 23 Jul 2011 21:18:34 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QkoH0-00014j-2z for ding@gnus.org; Sun, 24 Jul 2011 04:18:30 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QkoGz-0004Jn-PS for ding@gnus.org; Sun, 24 Jul 2011 04:18:29 +0200 Original-Received: from andy.bu.edu ([128.197.41.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2011 04:18:29 +0200 Original-Received: from cohen by andy.bu.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2011 04:18:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 114 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: andy.bu.edu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:WQBTVZHiB5g78828mtRnZD0hHNM= X-Spam-Score: -6.1 (------) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79552 Archived-At: >>>>> "Dave" == Dave Abrahams writes: [...] >> >> OK, lets try to debug this. First, can you verify that `C-u A T' >> searched the groups you think it should be searching? You can >> check the *Messages* buffer to see. Dave> Yeah, it's doing what I expect: Dave> Retrieving newsgroup: nnir:((query . "(or (header message-id Dave> ) Dave> (header references Dave> ))") Dave> (unique-id . "m2aac4cxyd.fsf"))... Fetching headers for Dave> nnir:((query . "(or (header message-id Dave> ) Dave> (header references Dave> ))") Dave> (unique-id . "m2aac4cxyd.fsf"))...done Opening nnir server on Dave> nnimap:BoostPro-ephemeral...done Opening server BoostPro Dave> Searching nnimap+BoostPro:[Gmail]/All Mail...done Search Dave> produced empty results. Dave> It may be that Gmail just doesn't like the size of that query. >> >> Assuming that it did, try to evaluate `nnimap-make-thread-query' >> on the header of the parent message and see what it returns. Dave> Assuming I know what you mean by "the header of the parent Dave> message," I get: Dave> "(OR (OR HEADER Message-Id Dave> HEADER REFERENCES Dave> ) (OR (OR HEADER Dave> Message-Id Dave> Dave> HEADER REFERENCES Dave> ) Dave> (OR (OR HEADER Message-Id Dave> HEADER REFERENCES Dave> ) (OR (OR HEADER Dave> Message-Id Dave> HEADER Dave> REFERENCES Dave> ) (OR (OR Dave> HEADER Message-Id HEADER Dave> REFERENCES ) (OR (OR HEADER Dave> Message-Id Dave> Dave> HEADER REFERENCES Dave> ) Dave> (OR (OR HEADER Message-Id Dave> HEADER REFERENCES ) (OR (OR Dave> HEADER Message-Id Dave> Dave> HEADER REFERENCES Dave> ) Dave> (OR (OR HEADER Message-Id Dave> HEADER REFERENCES ) (OR (OR Dave> HEADER Message-Id Dave> Dave> HEADER REFERENCES Dave> ) Dave> (OR HEADER REFERENCES Dave> Dave> HEADER Message-Id Dave> )))))))))))" Dave> It seems like an awful lot of "OR" nesting. That looks right. I don't use gmail, but searches with dovecot have no trouble with lengthy queries. Notice that the query that worked for you is present in this lengthier query and properly OR'd with other clauses, so it should have produced a superset of the articles. If its a gmail problem we can try to work around it. Can you try a few more things? Try entering the long query directly as an nnir search (as you did for the search that succeeded). It calls all the same routines so this should not make any difference, but I want to make sure. Assuming that this fails to find all the articles, can you try removing some of the clauses and see when it starts to work? For example can you try: "(OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR (OR HEADER Message-Id HEADER REFERENCES ) (OR HEADER REFERENCES HEADER Message-Id ))))))))"