Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for resolving aliases to get actual login name. #22

Closed
BtbN opened this issue Dec 1, 2015 · 0 comments
Closed

Support for resolving aliases to get actual login name. #22

BtbN opened this issue Dec 1, 2015 · 0 comments

Comments

@BtbN
Copy link

BtbN commented Dec 1, 2015

In my mail-setup, i never use my actual username as an e-mail address.
Instead, I use aliases.

I would be very nice if there was optional support for something that tries to resolve %u to an alias, putting it into another macro, %a or something like that, or setting said macro to %u if no alias was found.

Finding an alias is simple enough by executing "getent aliases %u". If it finds an alias for that name, it returns a line in the format "alias: username".

There also seems to be a python module for querying getent:

https://pypi.python.org/pypi/getent

With that, it shouldn't be much more than getent.aliases(username).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants