0

I installed neomutt recently I am not able to add my gmail account to it. How can I authenticate in neomutt as gmail client without writing password in config files as plain text ? I am using KeepassXC and I hope i is possible authenticate this way.

I configured my account file like this:

~/.config/neomutt/account.gmail

set from = [email protected]

set spoolfile = ~/Mail/Gmail/INBOX
set record = ~/Mail/Gmail/Sent
set trash = ~/Mail/Gmail/Trash
set postponed = ~/Mail/Gmail/Drafts
set header_cache = ~/Mail/Gmail/Cache

set sendmail = "msmtp -a gmail"

How can I authenticate my self in neomutt using keepassxc ?


EDIT: I have found out how to send password in plaintext to stdout from keepasscx-cli link. How can i use that to authenticate to neomutt ?

3
  • Do answers below this question unix.stackexchange.com/q/20570/85046 answer your question? There's several examples how to safely get password into mutt/neomutt without storing it in plaintext. Just change command to suite your needs with keepassxc-cli Commented Mar 1, 2021 at 16:23
  • @JakubJindra I have edited my question. Does it help ? Commented Mar 9, 2021 at 15:36
  • The answer is here: unix.stackexchange.com/a/20572/85046 just put your command in backticks and it will eval the output into neomutt variable value. Commented Mar 9, 2021 at 15:43

0

You must log in to answer this question.

Browse other questions tagged .