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] | [Digg Me] | [Add to del.icio.us] | [Submit to reddit] | [Submit to ma.gnolia.com] | [Submit to FURL]

[ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 ] next ->>