Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai Grossjohann <grossjohann@charly.informatik.uni-dortmund.de>
Cc: ding@ifi.uio.no
Subject: Re: Authinfo/Select Method question
Date: 15 Jan 1997 20:00:23 +0100	[thread overview]
Message-ID: <vafoheqsr08.fsf@ls6.informatik.uni-dortmund.de> (raw)
In-Reply-To: Baba Z Buehler's message of Wed, 15 Jan 1997 11:56:38 -0600

>>>>> 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


  reply	other threads:[~1997-01-15 19:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-15 17:28 Baba Z Buehler
1997-01-15 17:42 ` Kai Grossjohann
1997-01-15 17:56   ` Baba Z Buehler
1997-01-15 19:00     ` Kai Grossjohann [this message]
1997-01-15 21:17       ` Baba Z Buehler
1997-01-15 19:03     ` Randal Schwartz

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=vafoheqsr08.fsf@ls6.informatik.uni-dortmund.de \
    --to=grossjohann@charly.informatik.uni-dortmund.de \
    --cc=ding@ifi.uio.no \
    /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).