From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 27 Feb 2008 09:50:37 -0800 Subject: [sup-talk] gpg signing issue In-Reply-To: <1204101423-sup-3529@ausone.inria.fr> References: <1204081553-sup-4470@aconcagua> <1204101423-sup-3529@ausone.inria.fr> Message-ID: <1204134542-sup-7286@south> Reformatted excerpts from nicolas.pouillard's message of 2008-02-27: > That's a ruby-mail bug with a working patch [1], however > ruby-mail is no longer actively maintained :( I did hear from Matt Armstrong recently that he was starting to maintain it again. At least, he released a 1.0.0 last month that has Ruby 1.9 modifications. But nothing since. > [1]: "[2661] set_boundary doubles quotes in params which already contained a > quote" > http://rubyforge.org/tracker/index.php?func=detail&aid=2661&group_id=446&atid=1756 Does the following workaround help? (Completely untested.) diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb index 9e16132..ee06958 100644 --- a/lib/sup/crypto.rb +++ b/lib/sup/crypto.rb @@ -40,7 +40,7 @@ class CryptoManager raise Error, (output || "gpg command failed: #{cmd}") unless $?.success? envelope = RMail::Message.new - envelope.header["Content-Type"] = 'multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1' + envelope.header["Content-Type"] = 'multipart/signed; protocol=application/pgp-signature; micalg=pgp-sha1' envelope.add_part payload signature = RMail::Message.make_attachment output, "application/pgp-signature", nil, "signature.asc" -- William