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

Re: mutt and plaintext passwords : muttrc encryption ?



>      :source "echo set my_var |"
> 
> All I get is the error message:
> 
>      source: errors in echo set my_var |

":set my_var" yields "my_var: unknown variable" too.  Try, for example,

        :source "echo set ?index_format |"

I was going to suggest this approach as well, although I'd have proposed
"openssl enc" instead of gpg, I guess.  Not much call for an asymmetric
cipher here, especially as the point is to store secret data on a
filesystem that contains the key for decoding the secret data.  (I'm
sure your gpg key is secure and all, it's just that no stored key >
encrypted key.)

I'm kind of surprised you've missed my dozens of messages recommending
"source" with pipes, Kyle. :)  It's super useful.  My entire muttrc is
generated this way.

Thanks to the OP for asking the question, though.  I hadn't thought of
using programmic sources to encrypt sensitive muttrc files.  Embedding
programmatic source statements within programmatically-generated muttrc
streams... tasty.

-- 
 -D.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago