From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65609 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.emacs.gnus.general Subject: Re: Canonical server names and the false assumption in g-s-named-server Date: Fri, 09 Nov 2007 14:15:20 +0100 Message-ID: <87r6izlfvb.fsf@denkblock.local> References: <87zlzxyyxs.fsf@denkblock.local> <87ejgytey1.fsf@denkblock.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194614194 15881 80.91.229.12 (9 Nov 2007 13:16:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2007 13:16:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14106@lists.math.uh.edu Fri Nov 09 14:16:38 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 1IqTiu-0006UQ-GD for ding-account@gmane.org; Fri, 09 Nov 2007 14:16:36 +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 1IqTi8-0000Yc-G8; Fri, 09 Nov 2007 07:15:48 -0600 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 1IqTi6-0000YI-L2 for ding@lists.math.uh.edu; Fri, 09 Nov 2007 07:15:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IqTi0-0002VQ-Fg for ding@lists.math.uh.edu; Fri, 09 Nov 2007 07:15:46 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IqThv-0000ZV-00 for ; Fri, 09 Nov 2007 14:15:35 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IqThs-0000fX-I1 for ding@gnus.org; Fri, 09 Nov 2007 13:15:32 +0000 Original-Received: from pd9e84693.dip.t-dialin.net ([217.232.70.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2007 13:15:32 +0000 Original-Received: from eo by pd9e84693.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2007 13:15:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9e84693.dip.t-dialin.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Cancel-Lock: sha1:XiyaeSpR3nUbK1ZetjW3XrEGn0g= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65609 Archived-At: Elias Oltmanns wrote: [...] > For these reasons I suggest to apply the patch attached below. Actually, > I'd prefer to have gnus-agent-covered-methods store methods rather than > servers, but I suppose that this will introduce more problems with > existing installations upgrading to the next release of gnus. As for the ChangeLog entry, I'm not quite sure in what format to provide it to make it easier for you to import. Anyway, here it goes: * gnus.el (gnus-method-to-server): Add an optional parameter so the caller can indicate whether the cache should be disregarded for this call. This way the result of the call is reproducible at all times and can be considered a canonical server name for the supplied method. (gnus-agent-method-p): Canonicalize server names by pushing their method through (gnus-method-to-server) using the newly added no-cache parameter. * gnus-srvr.el (gnus-server-insert-server-line): Use the new no-cache parameter of gnus-method-to-server for the gnus-named-server property. Regards, Elias