From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14208 Path: main.gmane.org!not-for-mail From: "Edward J. Sabol" Newsgroups: gmane.emacs.gnus.general Subject: Re: feedback on AUTHINFO in qgnus-0.27 Date: Fri, 20 Feb 1998 18:26:59 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <199802202326.SAA21370@alderaan.gsfc.nasa.gov> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035153437 13547 80.91.224.250 (20 Oct 2002 22:37:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:37:17 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id PAA24082 for ; Fri, 20 Feb 1998 15:30:03 -0800 Original-Received: from sina.hpc.uh.edu (root@Sina.HPC.UH.EDU [129.7.3.5]) by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA17708 for ; Fri, 20 Feb 1998 17:28:11 -0600 (CST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id RAH10243; Fri, 20 Feb 1998 17:27:39 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 20 Feb 1998 17:27:14 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id RAA10230 for ; Fri, 20 Feb 1998 17:27:06 -0600 (CST) Original-Received: (qmail 22153 invoked by uid 504); 20 Feb 1998 23:27:00 -0000 Original-Received: (qmail 22150 invoked from network); 20 Feb 1998 23:27:00 -0000 Original-Received: from alderaan.gsfc.nasa.gov (128.183.127.237) by claymore.vcinet.com with SMTP; 20 Feb 1998 23:27:00 -0000 Original-Received: by alderaan.gsfc.nasa.gov (950413.SGI.8.6.12/951211.SGI.AUTO) id SAA21370; Fri, 20 Feb 1998 18:26:59 -0500 Original-To: ding@gnus.org In-reply-to: (message from Lars Magne Ingebrigtsen on 21 Feb 1998 00:10:30 +0100) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14208 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14208 Excerpts from mail: (21-Feb-98) Re: feedback on AUTHINFO in qgnus-0.27 by Lars Magne Ingebrigtsen "Edward J. Sabol" writes: Ed> So instead of semantically overloading the username as Ed> you suggested, we could define a macro which could be used as a flag to Ed> determine whether to force authinfo or not. For example, Ed> Ed> machine news.foobar.com login baz password xyzzy Ed> macdef nntp_init Ed> force authinfo Lars> Well, how would the user specify that authinfo should be forced onto Lars> server news.foobar.com and not news.barfoo.com? Since the "macdef" comes after "machine news.foobar.com", it only applies to that host and not to any other. That's completely consistent with the way FTP parses the ~/.netrc file and uses the "init" macro (and any others you define for a given host). In other words, the macros are defined on a per-host basis. To answer your question specifically, here is how you do it: -~/.authinfo------ machine news.foobar.com login baz password xyzzy macdef nntp_init force authinfo machine news.barfoo.com login zab password yzzyx ------------------ This method retains maximum compatibility with ~/.netrc to the point where you can still use the same file for both (assuming usernames and passwords are the same for NNTP and for login, of course). (If you implement this, please note that multiple macros other than "nntp_init" may be defined for a given host, but Gnus should only concern itself with the "nntp_init" macro.) Later, Ed