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

Re: Prompt for, and remember, a password?



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

On Sunday, September  7 at 02:53 PM, quoth Peter Davis:
> I guess all I really need would be for mutt to have an environment 
> variable (or some such thing) that I could use to pass the password 
> on the command line:
>
> macro index G "!inc -user pfd@xxxxxxxxxxxxx -pass $MYPASSWORD\n"
>
> Is that do-able?

Do-able? Yes. Wise from a security standpoint? No. Anyone on your 
machine can do a `ps axw` (or a similar command) to discover your 
password while the inc command is running.

If you really don't care, why not save your password to disk. Heck, 
you could even do this:

macro index G "!inc -user pfd@xxxxxxxxxxxxx -pass `cat ~/.pfdpass`\n"

~Kyle
- -- 
When the people fear the government, there is tyranny; when the 
government fears the people, there is liberty.
                                                    -- Thomas Jefferson
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkjEJAsACgkQBkIOoMqOI14WeACePW9hQZFmnTDA+YEhrv2mEQaJ
eYYAniUYATybd5aqASebZLiDWzDlK8cT
=oEAB
-----END PGP SIGNATURE-----