From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49929 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: message registry for Gnus Date: Fri, 07 Feb 2003 17:45:12 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: <4n3cn9i6kq.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044657280 29988 80.91.224.249 (7 Feb 2003 22:34:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 22:34:40 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hH4w-0007nN-00 for ; Fri, 07 Feb 2003 23:34:38 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18hH5i-0004mU-00; Fri, 07 Feb 2003 16:35:26 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Feb 2003 16:36:22 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA23274 for ; Fri, 7 Feb 2003 16:36:10 -0600 (CST) Original-Received: (qmail 64982 invoked by alias); 7 Feb 2003 22:35:09 -0000 Original-Received: (qmail 64977 invoked from network); 7 Feb 2003 22:35:09 -0000 Original-Received: from ns3.beld.net (208.229.215.83) by 66.230.238.6 with SMTP; 7 Feb 2003 22:35:09 -0000 Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [24.233.66.27]) by ns3.beld.net (Postfix) with ESMTP id 975183B85D for ; Fri, 7 Feb 2003 17:35:06 -0500 (EST) Original-To: ding@gnus.org 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" Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49929 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49929 On Fri, 07 Feb 2003, larsi@gnus.org wrote: > Ted Zlatanov writes: > >> (gnus-group-full-name group (gnus-find-method-for-group group)) >> >> will find "nnml+private:mail" even though the spooling is being >> done for "nnimap+server.name.com:mail". > > `gnus-find-method-for-group' only works (reliably) for Gnus groups > names, and not for server group names. That is, it works for > prefixed group names, which is what you're trying to find. :-) Argh. > So you can't use that in the back end. You have to do it the other > way around, and feed `gnus-group-prefixed-name' the select method in > some manner. I'm not sure how to get the select method though. I thought it would be gnus-current-select-method, but that's always the nnml method, even when nnimap splitting is done! I think there's something with the binding of that variable, and my Lisp is hardly good enough to figure out those closures or whatever is going on. So instead I brute-forced gnus-request-scan to set the new variable gnus-internal-registry-spool-current-method to gnus-command-method before a request-scan operation, and then gnus-registry.el uses that variable. It works very nicely, and I'm happy with the registry now, but please take a look and let me know if I'm missing something obvious as usual. I named the variable gnus-internal-registry-spool-current-method, I hope that's OK with everyone. It's certainly long enough that you can't miss it :) Ted