<<< Date Index >>>     <<< Thread Index >>>

Re: Prompt for, and remember, a password?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, September  7 at 01:10 PM, quoth Peter Davis:
> I've got mutt set up to use the MH inc command to retrieve mail from 
> a pop server.  This let's me use MH's maildelivery to sort messages 
> into folders, etc.
>
> macro index G "!inc -user pfd@xxxxxxxxxxxxx\n"
> macro pager G "!inc -user pfd@xxxxxxxxxxxxx\n"
>
> Is there a way to get mutt to prompt me for the password, and then 
> remember it so I won't have to re-type it each time I do a G?

Generally? No. Mutt doesn't do generic password management for 
third-party applications; and even if it did, there's no sufficiently 
generic method of providing the password to whatever command you 
happen to be running.

I don't know much about MH's inc command, but presumably you can put 
the password for it into a config file. If that's true, then you can 
use gpg to encrypt that config file, and decrypt it as necessary, and 
once you have that working, you can use gpg-agent to cache the gpg 
decryption password. That's, admittedly, pretty roundabout, but I 
can't think of a better way.

~Kyle
- -- 
Always forgive your enemies; nothing annoys them so much.
                                                         -- Oscar Wilde
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkjEISgACgkQBkIOoMqOI15vzACdGtQEk/Y47peC8oaQzGmVXvZ3
NK0AnA26sRyK0hFDK1k/HKPDpZXc08wT
=pQQd
-----END PGP SIGNATURE-----