X-Git-Url: http://git.sthu.org/?a=blobdiff_plain;f=caff%2Fcaff;h=8321031497f2336ea0c8b51621978e86bcd58003;hb=30a14ebe1a9bfbf99062005ed5cba967481b2205;hp=791021aedcccb5ceeb221c8297f3f390aed56711;hpb=7777db11bfd9461b41e25c8a226e6b30942c6489;p=pgp-tools.git diff --git a/caff/caff b/caff/caff index 791021a..8321031 100755 --- a/caff/caff +++ b/caff/caff @@ -779,8 +779,11 @@ sub send_mail($$$@) { (defined $CONFIG{'also-encrypt-to'})) { my $reason = $1; my $keyid = $2; - if (grep { %_ eq $keyid } @{$CONFIG{'also-encrypt-to'}}) { - warn("Could not encrypt to $keyid, specified in CONFIG{'also-encrypt-to'}. Try to update the key using gpg --homedir=\$HOME/caff/gnupghome --import ."); + if (grep { $_ eq $keyid } @{$CONFIG{'also-encrypt-to'}}) { + warn("Could not encrypt to $keyid, specified in CONFIG{'also-encrypt-to'}.\n". + "Try to update the key using gpg --homedir=$GNUPGHOME --import \n". + "or try the following if you are slightly more daring:\n". + " gpg --export $keyid | gpg --homedir=$GNUPGHOME --import"); return; }; };