]> git.eshelyaron.com Git - emacs.git/commit
Make auth-source-pass-search understand port lists
authorJoão Távora <joaotavora@gmail.com>
Wed, 20 Nov 2019 00:11:00 +0000 (00:11 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 22 Nov 2019 09:36:58 +0000 (09:36 +0000)
commit92fda5a7f92162d610d57df14372bcfcee1f01b6
treeec0b313fccb15a389a4ab41f28675955a5729250
parentc5de861af1da697b4481133e4f5f966e6a3fc859
Make auth-source-pass-search understand port lists

For cases such as a typical IMAP Gnus setup, auto-source-pass-search
is passed a list of "port aliases" like (993 "imaps" "imap" "993"
"143") in hopes of finding a matching ~/.password-store entry.

This modification makes this library understand and unroll the port
list so that, i.e. "domain:993", "domain:imaps"", "domain:imap",
etc. are computed as potential suffixes.  Previously a nonsensical
string "domain:(993 imaps imap ...)" was returned.

* lisp/auth-source-pass.el
(auth-source-pass--generate-entry-suffixes): Allow PORT to be a list
of ports.
lisp/auth-source-pass.el