diff --git a/Changelog b/Changelog index fc6250c..1abfd2e 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +1.2.2 (UNRELEASED) + + * Fix GnuPG groups support: check for encryption key existence using + gpg --encrypt instead of --list-public-keys. + 1.2.1 (2011 06 05) * Support more mailers than just mutt. diff --git a/metche b/metche index 617ef32..7bc25bb 100755 --- a/metche +++ b/metche @@ -333,7 +333,7 @@ # E-mail encryption if [ $ENCRYPT_EMAIL = "yes" ]; then - gpg --batch --list-public-keys $EMAIL_ADDRESS >/dev/null 2>&1 + echo | gpg --batch --encrypt --recipient $EMAIL_ADDRESS >/dev/null 2>&1 res=$? if [ $res -ne 0 ]; then warning " GnuPG public key for $EMAIL_ADDRESS not found."