Hi mutt users, * [email protected] <[email protected]> [19. Sep. 2010]: > * christoph <[email protected]> [Fri, Sep 17, 2010 at 10:53:55PM +0200] >> * Am Do, Sep 16, 2010 at 11:51:38 +0200 , schrieb [email protected]: >>> Some mailing lists I'm on are using encryption too, in order to >>> not have to re-encode the mails on the sever, the admins configured the >>> mailing list in a way that you send an email to one address: >>> [email protected] for example, but the mail should be encrypted to all >>> the users (which I know) on that list. >>> >>> I didn't figure out a way to manage that kind of lists. How would >>> you do it? I prefer to ask before I start writing my own wrapper for >>> GPG, maybe I miss something easy. >> >> In ~/.gnupg/gpg.conf: >> group 0x55555555=KEYID1 >> group 0x55555555=KEYID2 >> group 0x55555555=KEYID3 >> >> in muttrc: >> crypt-hook [email protected] 0x55555555 > Hey, > thx, looks very promising. Somehow it is not working, and I don't find > much information about this crypto-hook. What version is it working > with?
It's standard mutt at least since v 1.5.20 but I don't know how long this feature exists. > Do you have more information about that hook, maybe a link to the > documentation, which I couldn't find? So I could investigate why it is > not running on my own. This is the documentation from the mutt manual: http://www.mutt.org/doc/devel/manual.html#crypt-hook 21.Choosing the Cryptographic Key of the Recipient Usage: crypt-hook pattern keyid When encrypting messages with PGP/GnuPG or OpenSSL, you may want to associate a certain key with a given e-mail address automatically, either because the recipient's public key can't be deduced from the destination address, or because, for some reasons, you need to override the key Mutt would normally use. The crypt-hook command provides a method by which you can specify the ID of the public key to be used when encrypting messages to a certain recipient. The meaning of keyid is to be taken broadly in this context: You can either put a numerical key ID here, an e-mail address, or even just a real name. This is the documentation from the gpg man page: http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Key-related-Options.html --group name=value1 Sets up a named group, which is similar to aliases in email pro‐ grams. Any time the group name is a recipient (-r or --recipient), it will be expanded to the values specified. Multiple groups with the same name are automatically merged into a single group. The values are key IDs or fingerprints, but any key description is accepted. Note that a value with spaces in it will be treated as two different values. Note also there is only one level of expan‐ sion --- you cannot make an group that points to another group. When used from the command line, it may be necessary to quote the argument to this option to prevent the shell from treating it as multiple arguments. So basically you tell mutt to call gpg with an group name as recipient and gpg expands the group name to a list of recipients. Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-
