From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68362 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Can I do this with the registry? Date: Fri, 20 Mar 2009 16:26:01 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86vdq3naxi.fsf@lifelogs.com> References: <86k56kngfb.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237586399 11012 80.91.229.12 (20 Mar 2009 21:59:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2009 21:59:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16801@lists.math.uh.edu Fri Mar 20 23:01:16 2009 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 1LkmmA-00061N-IN for ding-account@gmane.org; Fri, 20 Mar 2009 23:01:14 +0100 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 1LkmkK-0000L1-OQ; Fri, 20 Mar 2009 16:59:20 -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 1LkmBB-0000BO-FC for ding@lists.math.uh.edu; Fri, 20 Mar 2009 16:23:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LkmB5-0001At-Mr for ding@lists.math.uh.edu; Fri, 20 Mar 2009 16:23:01 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LkmBR-0000Bo-00 for ; Fri, 20 Mar 2009 22:23:17 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LkmAy-0000fM-FN for ding@gnus.org; Fri, 20 Mar 2009 21:22:49 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Mar 2009 21:22:48 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Mar 2009 21:22:48 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:7E7Ew3/CN1xhLB/ea2WvfjKKA0I= X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68362 Archived-At: On Fri, 20 Mar 2009 16:07:58 -0400 David Abrahams wrote: DA> on Fri Mar 20 2009, Ted Zlatanov wrote: >> On Sat, 14 Mar 2009 22:50:32 -0700 David Abrahams wrote: >> DA> I'd really like a way to collect all the messages connected to a thread, DA> no matter which groups the thread has passed through. Can the registry DA> help with that, and if so, how? >> >> The registry can give you the following for a message ID: sender, >> subject, mtime, and groups for that message. You can also associate >> persistent flags with a message. >> >> What you need can be done by looking at the group DA> Heh, /which/ group? The first one returned should be OK. There's a gnus-registry-fetch-groups that returns all the groups, but since you want the article and don't care about where it comes from, you can just go with the first one: (let ((id "") (group (gnus-registry-fetch-group id))) (debug id group) (gnus-activate-group group) ;; is this needed? (gnus-request-article id group (current-buffer))) This doesn't work in this raw form, sorry, but it can get you started. I couldn't work on it more right now. Also look at the function that runs for `^' in the summary buffer, it gets the parent article in the current group and is close to what you want. >> for each message ID you need, looking for the message itself, and >> putting it in a list. Then you can get the References for the parent >> message and recurse. DA> Sounds pretty compute-intensive unless I maintain some other index. It wouldn't be hard to modify the registry to store the references for every article it sees, like it stores the subject and sender right now. Then it's just a quick lookup to find any article's parents. >> I think you're asking for the list of messages to be interpreted as a >> virtual thread inside the current group, which is pretty hard and I >> don't know how to do it. DA> Not necessarily. I might be very happy with something that works like DA> nnmairix, by creating a "virtual" group on my client containing all the DA> messages of interest. I don't know if that will work well, because you'd have to make a new one for every article and you'd have to leave the group you're currently visiting. But if it works for you... DA> If you think you understand how to approach this problem and wouldn't DA> mind pointing me in the right direction, I'd be very grateful and very DA> willing to hack up the solution myself. I'll be glad to help further when I have the chance. I hope this info is somewhat useful. Ted