nntp.el (nntp-send-authinfo): Work for secure nntp entry in authinfo.
This commit is contained in:
parent
b1890b0f10
commit
50fc698ea8
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-02-23 Katsumi Yamaoka <yamaoka@jpl.org>
|
||||
|
||||
* nntp.el (nntp-send-authinfo): Work for secure nntp entry in authinfo.
|
||||
|
||||
2012-02-20 Lars Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* mm-decode.el (mm-shr): Remove "soft hyphens".
|
||||
|
|
|
@ -1252,10 +1252,13 @@ If SEND-IF-FORCE, only send authinfo to the server if the
|
|||
(let* ((list (netrc-parse nntp-authinfo-file))
|
||||
(alist (netrc-machine list nntp-address "nntp"))
|
||||
(auth-info
|
||||
(nth 0 (auth-source-search :max 1
|
||||
:host (list nntp-address
|
||||
(nnoo-current-server 'nntp))
|
||||
:port '("119" "nntp"))))
|
||||
(nth 0 (auth-source-search
|
||||
:max 1
|
||||
:host (list nntp-address
|
||||
(nnoo-current-server 'nntp))
|
||||
:port (or (cdr (assoc (format "%s" nntp-port-number)
|
||||
'(("563" . ("563" "nntps" "snews")))))
|
||||
'("119" "nntp")))))
|
||||
(auth-user (plist-get auth-info :user))
|
||||
(auth-force (plist-get auth-info :force))
|
||||
(auth-passwd (plist-get auth-info :secret))
|
||||
|
|
Loading…
Add table
Reference in a new issue