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

From: "Michael Raitza" <[email-masked]>
Date: Mon, 30 Aug 2010 12:25:52 +0200

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
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel