Jump to content
Forums in Read-Only Mode - Please use Reddit ×

Using Keychain to unlock Mutt IMAP passwords


Recommended Posts

  • Funtoo Linux Developer

Hi funtooers,

 

I just installed Keychain to save up some password typing and I would like to take advantage of it for mutt.

 

Currently here is what I have in my muttrc to unlock IMAP passwords:

set my_pass_gmail=`gpg -d ~/.secret/.passwd.gpg | awk '/mail_gmail:/ {print $2}'`
set my_pass_aladom=`gpg -d ~/.secret/.passwd.gpg | awk '/mail_aladom:/ {print $2}'`

Currently, I have to type my RSA key password twice at Mutt startup. And if I add more accounts, I'll have to type it even more.

 

I'd like to type it only once (or even 0 if I already typed it after logging in). I think this is doable with Keychain, but did not find out how to do it on this page http://www.funtoo.org/Keychain

 

Thanks in advance.

Link to comment
Share on other sites

  • Funtoo Linux Developer

Found what I missed thanks to rieper on IRC.

eval `keychain --agents ssh,gpg --eval id_rsa DEADBEEF BADCAFFE`

in your ~/.bash_profile or ~/.zprofile

 

I think this should be documented in www.funtoo.org/Keychain


Link to comment
Share on other sites

×
×
  • Create New...