summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-12-17 15:33:22 +0100
committerintrigeri <intrigeri@boum.org>2011-12-17 15:33:22 +0100
commitd291b362395a6b61e1cc65742198db85b9115e10 (patch)
tree768dc339d1a2d79d12abef10712ef49407b4771b
parentc5b0f1ec9f55693becc15dc1d32c44a5ae246f2f (diff)
Fix GnuPG groups support.
Check for encryption key existence using gpg --encrypt instead of --list-public-keys.
-rw-r--r--Changelog5
-rwxr-xr-xmetche2
2 files changed, 6 insertions, 1 deletions
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 @@ 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."