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 ?

Jan Černý
  • 1,185
  • 2
  • 24
  • 46
  • Do answers below this question https://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` – Jakub Jindra Mar 01 '21 at 16:23
  • @JakubJindra I have edited my question. Does it help ? – Jan Černý Mar 09 '21 at 15:36
  • The answer is here: https://unix.stackexchange.com/a/20572/85046 just put your command in backticks and it will eval the output into neomutt variable value. – Jakub Jindra Mar 09 '21 at 15:43

0 Answers0