From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9432 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: Authinfo/Select Method question Date: 15 Jan 1997 20:00:23 +0100 Sender: grossjoh@charly.informatik.uni-dortmund.de Message-ID: References: <199701151756.LAA10077@tigger.beckman.uiuc.edu> Reply-To: Kai Grossjohann NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.100) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035149459 18420 80.91.224.250 (20 Oct 2002 21:30:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:30:59 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id LAA23763 for ; Wed, 15 Jan 1997 11:16:47 -0800 Original-Received: from waldorf.informatik.uni-dortmund.de (waldorf.informatik.uni-dortmund.de [129.217.4.42]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 15 Jan 1997 20:01:31 +0100 Original-Received: from naunet.informatik.uni-dortmund.de (naunet.informatik.uni-dortmund.de [129.217.20.111]) by waldorf.informatik.uni-dortmund.de (8.8.4/) with SMTP id UAA13572; Wed, 15 Jan 1997 20:00:24 +0100 (MET) Original-Received: by naunet.informatik.uni-dortmund.de id UAA01702; Wed, 15 Jan 1997 20:00:24 +0100 Original-To: Baba Z Buehler In-Reply-To: Baba Z Buehler's message of Wed, 15 Jan 1997 11:56:38 -0600 Original-Lines: 32 X-Mailer: Red Gnus v0.81/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:9432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9432 >>>>> Baba Z Buehler writes: Baba> Yes, Jedi Master, but this uses my login name... my account on Baba> the news server has a different login than my regular UNIX Baba> account. Hm, here's a slightly modified nntp-send-authinfo-from-file. (defun nntp-send-authinfo-from-file-1 () "Send the AUTHINFO to the nntp server. This function is supposed to be called from `nntp-server-opened-hook'. It will prompt for a password." (when (file-exists-p "~/.nntp-userpass") (nnheader-temp-write nil (insert-file-contents "~/.nntp-userpass") (goto-char (point-min)) (nntp-send-command "^.*\r?\n" "AUTHINFO USER" (buffer-substring (point) (progn end-of-line) (point))) (forward-line 1) (nntp-send-command "^.*\r?\n" "AUTHINFO PASS" (buffer-substring (point) (progn (end-of-line) (point))))))) This should read a ~/.nntp-userpass file consisting of two lines: the first line contains the user name, the second line contains the password. Does this work? kai -- I wonder why nobody don't like me, or is it de fact dat I'm ugly? -- Harry Belafonte