(nntp-authinfo-force): New variable.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 10 Nov 2006 08:15:19 +0000 (08:15 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 10 Nov 2006 08:15:19 +0000 (08:15 +0000)
(nntp-send-authinfo): Use it.

lisp/ChangeLog
lisp/nntp.el

index c7d71c2..cda8089 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nntp.el (nntp-authinfo-force): New variable.
+       (nntp-send-authinfo): Use it.
+
 2006-11-09  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * message.el (message-strip-subject-encoded-words): Allow _not_ to
index 531c916..340b96b 100644 (file)
@@ -254,6 +254,7 @@ to insert Cancel-Lock headers.")
 (defvoo nntp-last-command nil)
 (defvoo nntp-authinfo-password nil)
 (defvoo nntp-authinfo-user nil)
+(defvoo nntp-authinfo-force nil)
 
 (defvar nntp-connection-list nil)
 
@@ -1116,7 +1117,7 @@ If SEND-IF-FORCE, only send authinfo to the server if the
 .authinfo file has the FORCE token."
   (let* ((list (netrc-parse nntp-authinfo-file))
         (alist (netrc-machine list nntp-address "nntp"))
-        (force (netrc-get alist "force"))
+        (force (or (netrc-get alist "force") nntp-authinfo-force))
         (user (or (netrc-get alist "login") nntp-authinfo-user))
         (passwd (netrc-get alist "password")))
     (when (or (not send-if-force)