Hi all The following is related to [1], i.e. use multiple crypt-hook commands. I'm using something like this[*]
crypt-hook mailing.l...@company.com EX9B197029581FAC crypt-hook mailing.l...@company.com 4C95T7E7F627637D crypt-hook mailing.l...@company.com 74464897317CDA88 crypt-hook mailing.l...@company.com FECEC90758BB1D95 crypt-hook mailing.l...@company.com 866BAB720X7E9L98 Running this with mutt -d2, I see in the debug log that the list of recipients is passed to pgpewrap, but truncated as follows (lines broken): [2016-07-26 14:49:12] mutt_pgp_command: /usr/lib/mutt/pgpewrap gpg2 --batch --quiet --no-verbose --textmode --output - --encrypt --encrypt-to XXXXXXXX --sign -u YYYYYYYYY --armor --always-trust -- -r 0xEX9B197029581FAC 0x4C95T7E7F627637D 0x74464897317CDA -- /tmp/mutt-foo-1000-aaa-bbbbbbbbbbbbbb i.e. mutt * stops at the third[**] key 74464897317CDA88 (length 16) and * passes a truncated version 74464897317CDA (length 14) to pgpewrap which then gives me a "gpg: skipped: Invalid user ID". The related pgp setting is set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg2 %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output %- --encrypt --encrypt-to XXXXXXXX --sign %?a?-u %a? --armor %--always-trust -- -r %r -- %f" Does anybody know what's going on here (Debian, Mutt 1.6.0 (2016-04-01))? Any hint is appreciated. Thank you very much! best, Steve [1] http://marc.info/?l=mutt-users&m=146850542227714&w=2 [*] The key ids are fetched from gpg2 --list-keys --with-colons company.com | grep ^pub:f: | cut -d: -f5 [**] In my tests, I have 64 keys in total and the truncated one is number 54.