]> git.notmuchmail.org Git - sup/commitdiff
exact match gpg fix
authorian <itaylor@uark.edu>
Wed, 21 May 2008 01:25:18 +0000 (21:25 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 25 May 2008 02:16:24 +0000 (19:16 -0700)
lib/sup/crypto.rb

index f596c8964f9c933e86890a66e251d6ba23c18193..0003fec7bc60314dd14d89387d25ae886a7972c6 100644 (file)
@@ -53,7 +53,7 @@ class CryptoManager
     payload_fn.write format_payload(payload)
     payload_fn.close
 
-    recipient_opts = to.map { |r| "--recipient '#{r}'" }.join(" ")
+    recipient_opts = to.map { |r| "--recipient '<#{r}>'" }.join(" ")
     sign_opts = sign ? "--sign --local-user '#{from}'" : ""
     gpg_output = run_gpg "--output - --armor --encrypt --textmode #{sign_opts} #{recipient_opts} #{payload_fn.path}"
     raise Error, (gpg_output || "gpg command failed: #{cmd}") unless $?.success?