From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14010 Path: main.gmane.org!not-for-mail From: Jason R Mastaler Newsgroups: gmane.emacs.gnus.general Subject: Re: AUTHINFO Date: 13 Feb 1998 23:55:37 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: multipart/mixed; boundary="Multipart_Fri_Feb_13_23:55:37_1998-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035153273 12390 80.91.224.250 (20 Oct 2002 22:34:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:34:33 +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 XAA21370 for ; Fri, 13 Feb 1998 23:01:46 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id BAA13492 for ; Sat, 14 Feb 1998 01:00:24 -0600 (CST) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id BAN24951; Sat, 14 Feb 1998 01:36:39 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 14 Feb 1998 00:59:26 -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 AAA22872 for ; Sat, 14 Feb 1998 00:59:18 -0600 (CST) Original-Received: (qmail 19944 invoked by uid 504); 14 Feb 1998 06:59:12 -0000 Original-Received: (qmail 19941 invoked from network); 14 Feb 1998 06:59:12 -0000 Original-Received: from camel7.mindspring.com (207.69.200.57) by claymore.vcinet.com with SMTP; 14 Feb 1998 06:59:12 -0000 Original-Received: from ashanti.mastaler.com (ip143.albuquerque2.nm.pub-ip.psi.net [38.27.115.143]) by camel7.mindspring.com (8.8.5/8.8.5) with ESMTP id BAA10708 for ; Sat, 14 Feb 1998 01:59:10 -0500 (EST) Original-Received: (from jason@localhost) by ashanti.mastaler.com (8.8.5/8.8.5) id XAA18120; Fri, 13 Feb 1998 23:55:38 -0700 (MST) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "13 Feb 1998 19:51:47 +0100" Original-Lines: 44 X-Mailer: Quassia Gnus v0.25/XEmacs 20.5(beta24) - "Kaghani" Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14010 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14010 --Multipart_Fri_Feb_13_23:55:37_1998-1 Content-Type: text/plain; charset=US-ASCII Lars Magne Ingebrigtsen writes: > I've now finally fiddled with automatic authinfo thingies, so that it > should be unnecessary to put the authinfo function in the startup > hook. Let me know in what ways the new sceme doesn't work. :-) Hey great, function `nntp-send-nosy-authinfo' worked for me without help for the first time. How bout adding a `nntp-send-nosy-authinfo-from-file' to the list of available functions for those of us whose current login name differs from the NNTP server username we authenticate with? I'm using the following at the moment. My ~/.nntp-authinfo file has the username on the first line and the password on the second line. --Multipart_Fri_Feb_13_23:55:37_1998-1 Content-Type: text/plain; charset=US-ASCII (add-hook 'nntp-server-opened-hook (lambda () (cond ((string-match "relay" nntp-address) (nntp-send-nosy-authinfo-from-file)) (t )))) (defun nntp-send-nosy-authinfo-from-file () "Send the AUTHINFO to the nntp server, including username and password This function is supposed to be called from `nntp-server-opened-hook'." (when (file-exists-p "~/.nntp-authinfo") (nnheader-temp-write nil (insert-file-contents "~/.nntp-authinfo") (goto-char (point-min)) (nntp-send-command "^.*\r?\n" "AUTHINFO USER" (buffer-substring (point) (progn (end-of-line) (point)))) (goto-line 2) (nntp-send-command "^.*\r?\n" "AUTHINFO PASS" (buffer-substring (point) (progn (end-of-line) (point))))))) --Multipart_Fri_Feb_13_23:55:37_1998-1--