aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2012-02-23 23:11:13 +0000
committerKatsumi Yamaoka2012-02-23 23:11:13 +0000
commit50fc698ea889b2439723497ddde594b19db209d5 (patch)
tree8990dd580fa67d28c04120c55fa1e01349155fa5
parentb1890b0f104f5f17ecf314c9b7f74ee482e00fd9 (diff)
downloademacs-50fc698ea889b2439723497ddde594b19db209d5.tar.gz
emacs-50fc698ea889b2439723497ddde594b19db209d5.zip
nntp.el (nntp-send-authinfo): Work for secure nntp entry in authinfo.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nntp.el11
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 0729fb90c48..e58b6cc7773 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12012-02-23 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * nntp.el (nntp-send-authinfo): Work for secure nntp entry in authinfo.
4
12012-02-20 Lars Ingebrigtsen <larsi@gnus.org> 52012-02-20 Lars Ingebrigtsen <larsi@gnus.org>
2 6
3 * mm-decode.el (mm-shr): Remove "soft hyphens". 7 * mm-decode.el (mm-shr): Remove "soft hyphens".
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el
index 98393a61764..0f60fdd756b 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -1252,10 +1252,13 @@ If SEND-IF-FORCE, only send authinfo to the server if the
1252 (let* ((list (netrc-parse nntp-authinfo-file)) 1252 (let* ((list (netrc-parse nntp-authinfo-file))
1253 (alist (netrc-machine list nntp-address "nntp")) 1253 (alist (netrc-machine list nntp-address "nntp"))
1254 (auth-info 1254 (auth-info
1255 (nth 0 (auth-source-search :max 1 1255 (nth 0 (auth-source-search
1256 :host (list nntp-address 1256 :max 1
1257 (nnoo-current-server 'nntp)) 1257 :host (list nntp-address
1258 :port '("119" "nntp")))) 1258 (nnoo-current-server 'nntp))
1259 :port (or (cdr (assoc (format "%s" nntp-port-number)
1260 '(("563" . ("563" "nntps" "snews")))))
1261 '("119" "nntp")))))
1259 (auth-user (plist-get auth-info :user)) 1262 (auth-user (plist-get auth-info :user))
1260 (auth-force (plist-get auth-info :force)) 1263 (auth-force (plist-get auth-info :force))
1261 (auth-passwd (plist-get auth-info :secret)) 1264 (auth-passwd (plist-get auth-info :secret))