From: Jason R Mastaler <jason@mastaler.com>
Subject: Re: Authentication?
Date: 17 Aug 1997 13:47:28 -0600 [thread overview]
Message-ID: <x77mdk7fsf.fsf@mastaler.com> (raw)
In-Reply-To: Kevin Cheek's message of "17 Aug 1997 14:22:54 -0400"
I have the same situation here. I added this function (Darrell
Fuhriman's) to my .gnus and it's working fine. Make sure to replace
"relay" with the hostname of your nntp server.
------
(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)))))))
------
Also create a file called ".nntp-auth info" and put the username on
the first line and the password on the second line. This should be
all you need. BTW, a function like the one I included will probably
be included with Quassia Gnus.
Jason R. Mastaler jason@mastaler.com
next prev parent reply other threads:[~1997-08-17 19:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-17 18:22 Authentication? Kevin Cheek
1997-08-17 19:47 ` Jason R Mastaler [this message]
1997-08-18 19:47 ` Authentication? Kevin Cheek
1997-08-18 20:28 ` Authentication? Rolf Marvin B|e Lindgren
1997-08-18 20:52 ` Authentication? Jason R Mastaler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x77mdk7fsf.fsf@mastaler.com \
--to=jason@mastaler.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).