Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: "Michael Raitza" <spacefrogg-devel@instandbesetzt.net>
To: "sup-devel" <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH] fix problem with Content-Type in mail header
Date: Mon, 30 Aug 2010 12:25:52 +0200	[thread overview]
Message-ID: <1283163832-sup-5606@leandros> (raw)


[-- 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

                 reply	other threads:[~2010-08-30 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1283163832-sup-5606@leandros \
    --to=spacefrogg-devel@instandbesetzt.net \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox