From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9433 Path: main.gmane.org!not-for-mail From: Randal Schwartz Newsgroups: gmane.emacs.gnus.general Subject: Re: Authinfo/Select Method question Date: 15 Jan 1997 12:03:31 -0700 Sender: merlyn@gadget.cscaper.com Message-ID: <8c3ew2yd4s.fsf@gadget.cscaper.com> References: <199701151756.LAA10077@tigger.beckman.uiuc.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149460 18438 80.91.224.250 (20 Oct 2002 21:31:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:31:00 +0000 (UTC) Cc: Kai Grossjohann , 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 LAA23767 for ; Wed, 15 Jan 1997 11:16:48 -0800 Original-Received: from gadget.cscaper.com (gadget.cscaper.com [206.67.186.3]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 15 Jan 1997 20:03:45 +0100 Original-Received: (from merlyn@localhost) by gadget.cscaper.com (8.8.3/8.8.3) id MAA26725; Wed, 15 Jan 1997 12:03:32 -0700 (MST) Original-To: Baba Z Buehler In-Reply-To: Baba Z Buehler's message of Wed, 15 Jan 1997 11:56:38 -0600 Original-Lines: 33 X-Mailer: Red Gnus v0.80/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:9433 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9433 >>>>> "Baba" == Baba Z Buehler writes: Baba> Kai Grossjohann writes: >> Turn to Mekka, shout three times ``I know where my towel is!'', and >> type C-h f nntp-send-authinfo-from-file RET. You'll be enlightened. >> Baba> Yes, Jedi Master, but this uses my login name... my account on the news server Baba> has a different login than my regular UNIX account. in my .gnus.el: (setq gnus-select-method '(nntp "PRIVATE-NEWS.my-isp.com" (nntp-server-opened-hook (MERLYN:nntp-authinfo-for-my-isp)) )) (defun MERLYN:nntp-authinfo-for-my-isp () (nntp-send-command "^.*\r?\n" "AUTHINFO USER randal") (nntp-send-command "^.*\r?\n" "AUTHINFO PASS duh-you-think-I'd-tell-you?")) Don't bother trying this for real.... this is an example, kids. :-) It *would* have been nice to have this be a paramatized function, but I didn't have time to fuss around. I need to save the time for newsreading. :-) -- Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095 Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying Email: Snail: (Call) PGP-Key: (finger merlyn@ora.com) Web: My Home Page! Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me