Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6a6e4d93
Commit
6a6e4d93
authored
Jun 21, 2011
by
Lars Magne Ingebrigtsen
Browse files
Prefer the ~/.authinfo file over the ~/.authinfo.gpg file, especially when saving.
parent
4ea31e07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+7
-0
lisp/gnus/auth-source.el
lisp/gnus/auth-source.el
+5
-4
No files found.
lisp/gnus/ChangeLog
View file @
6a6e4d93
2011-06-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
* auth-source.el (auth-source-netrc-create): Don't print all tokens in
%S format, since that looks odd.
(auth-sources): Prefer the ~/.authinfo file over the ~/.authinfo.gpg
file, especially when saving.
2011-06-18 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-netrc-use-gpg-tokens): Replace
...
...
lisp/gnus/auth-source.el
View file @
6a6e4d93
...
...
@@ -208,7 +208,7 @@ If the value is a function, debug messages are logged by calling
(
function
:tag
"Function that takes arguments like `message'"
)
(
const
:tag
"Don't log anything"
nil
)))
(
defcustom
auth-sources
'
(
"~/.authinfo
.gpg
"
"~/.authinfo"
"~/.netrc"
)
(
defcustom
auth-sources
'
(
"~/.authinfo"
"~/.authinfo
.gpg
"
"~/.netrc"
)
"List of authentication sources.
The default will get login and password information from
...
...
@@ -1281,7 +1281,7 @@ See `auth-source-search' for details on SPEC."
(
let
((
printer
(
lambda
()
;; append the key (the symbol name of r)
;; and the value in r
(
format
"%s%s %
S
"
(
format
"%s%s %
s
"
;; prepend a space
(
if
(
zerop
(
length
add
))
""
" "
)
;; remap auth-source tokens to netrc
...
...
@@ -1291,8 +1291,9 @@ See `auth-source-search' for details on SPEC."
(
secret
"password"
)
(
port
"port"
)
; redundant but clearer
(
t
(
symbol-name
r
)))
;; the value will be printed in %S format
data
))))
(
if
(
string-match
"[\" ]"
data
)
(
format
"%S"
data
)
data
)))))
(
setq
add
(
concat
add
(
funcall
printer
)))))))
(
plist-put
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment