awdeorio / mailmerge

A simple, command line mail merge tool.
MIT License
135 stars 40 forks source link

Password manager integration #104

Open bmclean2 opened 3 years ago

bmclean2 commented 3 years ago

Would be nice to be able to call a command line password manager in the config file. Right now, I'm unable to use mailmerge with davmail as an intermediary to an exchange server because it doesn't handle the password request correctly.

awdeorio commented 3 years ago

Could elaborate a little more about what this might look like?

bmclean2 commented 3 years ago

In the config file you could have an optional line like

passcmd = "pass joe@smith.com"

or

passwordeval = "lpass show --password joe@smith.com"

Including such a line would bypass the password prompt.

awdeorio commented 3 years ago

Seems like a reasonable idea for a feature.

WorksAtAUni commented 1 year ago

I know this old for @bmclean2 , but for anyone else, considering you are starting with python, you could write a wrapper for mailmerge and see if you passsword manager can handle that ? 1Password for example has tnice cli that lets you extract and leverage a token

https://1password.community/discussion/112515/log-into-one-password-cli-within-python-script-run-time