From: Lars Ingebrigtsen <larsi@gnus.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: Damien Cassou <damien@cassou.me>,
38284@debbugs.gnu.org, Nicolas Petton <nicolas@petton.fr>
Subject: bug#38284: 27.0.50; [PATCH] Make auth-source-pass-search understand port lists
Date: Thu, 21 Nov 2019 14:47:54 +0100 [thread overview]
Message-ID: <875zjdz6gl.fsf@gnus.org> (raw)
In-Reply-To: <87ftijz9df.fsf@gmail.com> ("João Távora"'s message of "Wed, 20 Nov 2019 00:20:28 +0000")
João Távora <joaotavora@gmail.com> writes:
> 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 return.
>
> (let ((domains (auth-source-pass--domains (split-string hostname "\\."))))
> - (seq-mapcat (lambda (n)
> - (auth-source-pass--name-port-user-suffixes n user port))
> + (seq-mapcat (lambda (d)
> + (seq-mapcat
> + (lambda (p)
> + (auth-source-pass--name-port-user-suffixes d user p))
> + (if (listp port) port (list port))))
> domains)))
Looks good to me, but I don't use password-store so I can't really
test. If it works for you, please go ahead and apply.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-11-21 13:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-20 0:20 bug#38284: 27.0.50; [PATCH] Make auth-source-pass-search understand port lists João Távora
2019-11-21 13:47 ` Lars Ingebrigtsen [this message]
2019-11-21 18:27 ` Damien Cassou
2019-11-21 19:06 ` João Távora
2019-11-22 8:49 ` Damien Cassou
2019-11-22 9:35 ` João Távora
2020-01-20 18:54 ` Stefan Kangas
2020-01-21 19:25 ` Damien Cassou
2020-01-22 8:02 ` Stefan Kangas
2020-01-22 9:22 ` Damien Cassou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zjdz6gl.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=38284@debbugs.gnu.org \
--cc=damien@cassou.me \
--cc=joaotavora@gmail.com \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.