From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73081 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: A T does not work in nnimap Date: Wed, 13 Oct 2010 17:30:01 -0400 Message-ID: <87d3rddbmu.fsf@andy.bu.edu> References: <874ocrwjxu.fsf@andy.bu.edu> <87mxqjvuy8.fsf@andy.bu.edu> <87r5fuc6xk.fsf@andy.bu.edu> <87hbgpdd25.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287005447 27370 80.91.229.12 (13 Oct 2010 21:30:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 21:30:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21453@lists.math.uh.edu Wed Oct 13 23:30:46 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 1P68uJ-0005YA-PB for ding-account@gmane.org; Wed, 13 Oct 2010 23:30:44 +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 1P68tt-0003Gc-ME; Wed, 13 Oct 2010 16:30:17 -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 1P68ts-0003GN-40 for ding@lists.math.uh.edu; Wed, 13 Oct 2010 16:30:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P68tm-0004fh-Sj for ding@lists.math.uh.edu; Wed, 13 Oct 2010 16:30:15 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P68tm-0005ED-00 for ; Wed, 13 Oct 2010 23:30:10 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P68tm-0005I4-3o for ding@gnus.org; Wed, 13 Oct 2010 23:30:10 +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 ; Wed, 13 Oct 2010 23:30:10 +0200 Original-Received: from cohen by andy.bu.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2010 23:30:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: andy.bu.edu User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ux/uosFETmCXQDqUrZRvzZ/DwSc= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73081 Archived-At: >>>>> "Lars" == Lars Magne Ingebrigtsen writes: Lars> Andrew Cohen writes: >> Once I have retrieved the headers (gnus-retrieve-headers), how do >> I get them incorporated into the thread? I think I see how to do >> this with NOV, but not with the full headers in the >> nnimap-buffer. Lars> You have to parse the headers, and I think Lars> gnus-get-newsgroup-headers' is probably the right function to Lars> do that. It's what `^' uses, at least. That did it. Thanks. >> I can guarantee the full thread in nnimap, but only if I do >> something special for the nnimap backend, which I think we would >> like to avoid. Lars> Not necessarily. We can have a -request-thread function for Lars> the backends that support it (i.e., nnimap), and fall back to Lars> just retrieving a bunch of headers for the other backends. OK, so some pseudo-code: (defun gnus-summary-refer-thread () (if backend-supports-request-thread (backend-request-thread) (gnus-retrieve-headers bunch)) (gnus-summary-limit-include-thread id)) Right? I think I might be able to handle this. Regards, Andy