[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Hi,

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.


Regards,

Michael

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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel