OK, this is one more article containing mutt wizardry.
Despite it’s excellent integration with GnuPG, mutt cannot automatically sign messages to a selected group of individuals without tedious manual configuration.
A while ago, while browsing the newsgroups, I found a poster suggesting that it would be a good idea to have mutt automatically sign outgoing messages whenever the recipient’s email could be found in our keyring.
I took it as an interesting challenge and conjured up the horrifying (but functional) configuration below:
send-hook '(~t .*)' 'reset pgp_autosign'
send-hook "(~t DUMMY `(gpg --list-keys | sed -ne \
's/^[^<]*<\([a-z0-9\.\-\_]*@[a-z0-9\.\-\_]*\)>.*/\
send-hook \"(~t \1)\" \"set pgp_autosign\"/gip' | \
sort -u >~/.mutt-autosign)`)" 'set pgp_autosign'
source ~/.mutt-autosign
If you want to understand how it works, mail me. :)
[Permalink] |
|
|
|
|
