[sup-devel] [PATCH] fix problem with Content-Type in mail header

Michael Raitza spacefrogg-devel at instandbesetzt.net
Mon Aug 30 06:25:52 EDT 2010


i found a problem in crypto.rb. RMail seemes to add quotes around
arguments in the Content-Type field even if quotes are already given.
This lead to double double quotes and confused other mail clients.

Diff attached.



diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
index 7324ad4..04ca1c1 100644
--- a/lib/sup/crypto.rb
+++ b/lib/sup/crypto.rb
@@ -88,7 +88,7 @@ EOS
     control.body = "Version: 1\n"
     envelope = RMail::Message.new
-    envelope.header["Content-Type"] = 'multipart/encrypted; protocol="application/pgp-encrypted"'
+    envelope.header["Content-Type"] = 'multipart/encrypted; protocol=application/pgp-encrypted'
     envelope.add_part control
     envelope.add_part encrypted_payload
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20100830/bfcc1e58/attachment.bin>

More information about the Sup-devel mailing list