Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH] fix problem with Content-Type in mail header
@ 2010-08-30 10:25 Michael Raitza
  0 siblings, 0 replies; only message in thread
From: Michael Raitza @ 2010-08-30 10:25 UTC (permalink / raw)
  To: sup-devel


[-- Attachment #1.1: Type: text/plain, Size: 738 bytes --]

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 #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-30 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-30 10:25 [sup-devel] [PATCH] fix problem with Content-Type in mail header Michael Raitza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox