diff options
author | intrigeri <intrigeri@boum.org> | 2011-12-17 15:33:22 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2011-12-17 15:33:22 +0100 |
commit | d291b362395a6b61e1cc65742198db85b9115e10 (patch) | |
tree | 768dc339d1a2d79d12abef10712ef49407b4771b | |
parent | c5b0f1ec9f55693becc15dc1d32c44a5ae246f2f (diff) |
Fix GnuPG groups support.
Check for encryption key existence using gpg --encrypt instead
of --list-public-keys.
-rw-r--r-- | Changelog | 5 | ||||
-rwxr-xr-x | metche | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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. @@ -333,7 +333,7 @@ context_config() { # 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." |