From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11925 Path: main.gmane.org!not-for-mail From: Jason R Mastaler Newsgroups: gmane.emacs.gnus.general Subject: Re: Authentication? Date: 18 Aug 1997 14:52:59 -0600 Message-ID: References: <55k9hklldt.fsf@huffamoose.im.med.umich.edu> <554t8n8e9b.fsf@huffamoose.im.med.umich.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035151554 824 80.91.224.250 (20 Oct 2002 22:05:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:05:54 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.6/8.8.6) with ESMTP id PAA08153 for ; Mon, 18 Aug 1997 15:01:38 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id QAA08031 for ; Mon, 18 Aug 1997 16:56:57 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Mon, 18 Aug 1997 22:55:18 +0200 Original-Received: (qmail 24490 invoked by uid 504); 18 Aug 1997 20:55:16 -0000 Original-Received: (qmail 24487 invoked from network); 18 Aug 1997 20:55:16 -0000 Original-Received: from brickbat8.mindspring.com (207.69.200.11) by claymore.vcinet.com with SMTP; 18 Aug 1997 20:55:16 -0000 Original-Received: from ashanti.mastaler.com (ip164.albuquerque.nm.pub-ip.psi.net [38.11.185.164]) by brickbat8.mindspring.com (8.8.5/8.8.5) with ESMTP id QAA02597 for ; Mon, 18 Aug 1997 16:55:13 -0400 (EDT) Original-Received: (from jason@localhost) by ashanti.mastaler.com (8.8.5/8.8.5) id OAA15426; Mon, 18 Aug 1997 14:53:01 -0600 (MDT) Original-To: ding@gnus.org In-Reply-To: Kevin Cheek's message of "18 Aug 1997 15:47:28 -0400" Original-Lines: 60 X-Mailer: Gnus v5.4.65/XEmacs 20.2 Xref: main.gmane.org gmane.emacs.gnus.general:11925 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11925 Kevin Cheek writes: > Thanks for the suggestion, but that doesn't fix the problem I'm > having. > > The problem I am running into is that Gnus hangs during or right after > sending the AUTHINFO. With either nntp-send-nosy-authinfo or the > nntp-send-nosy-authinfo-from-file that you posted, Gnus simply > hangs. This problem was mentioned in several messages on this list (in > July, I think), but apparently no solution was ever found except to > hit C-g, which would allow them to read news. Unfortunately, hitting > C-g does not work for me as that simply causes Gnus to "Quit". > > Does anyone know why Gnus hangs when using authentication? I was the one who posted the questions in July, and a couple solutions were in fact found. One of which I posted, the other which I sent you in a private e-mail. Both fixed the hanging right after sending AUTHINFO problem for me and several other people. Have you tried both of them? Can you access this authenticated news server from the same machine using another newsreader such as Netscape Navigator? To reiterate, you should be able to get things working by adding either one (but not both) of the following to your .gnus or .emacs. *interactively* ---- (add-hook 'nntp-server-opened-hook 'nntp-send-mode-reader) (add-hook 'nntp-server-opened-hook 'nntp-send-nosy-authinfo) (setq nntp-authinfo-function (function nntp-send-nosy-authinfo)) ---- *reading authinfo from file* ---- (add-hook 'nntp-server-opened-hook (lambda () (cond ((string-match "something.com" 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))))))) ---- Jason R. Mastaler jason@mastaler.com