aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-09-01 16:00:08 +0000
committerJamis Buck <jamis@37signals.com>2005-09-01 16:00:08 +0000
commit8373b55055f421bb48c375f69d85f6dbbe679649 (patch)
tree169eeb1fe6977620b1fc6d7d32a69b9e25307866 /actionmailer/lib
parenta32251487174dffe420980fbc9d43bcf4472d2af (diff)
downloadrails-8373b55055f421bb48c375f69d85f6dbbe679649.tar.gz
rails-8373b55055f421bb48c375f69d85f6dbbe679649.tar.bz2
rails-8373b55055f421bb48c375f69d85f6dbbe679649.zip
* Don't add charset to content-type header for a part that contains subparts (for AOL compatibility) #2013 [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib')
-rw-r--r--actionmailer/lib/action_mailer/base.rb1
-rwxr-xr-xactionmailer/lib/action_mailer/vendor/tmail/header.rb8
2 files changed, 6 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 089b2ef0f6..699714c78f 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -225,6 +225,7 @@ module ActionMailer #:nodoc:
end
unless @parts.empty?
@content_type = "multipart/alternative"
+ @charset = nil
@parts = sort_parts(@parts, @implicit_parts_order)
end
end
diff --git a/actionmailer/lib/action_mailer/vendor/tmail/header.rb b/actionmailer/lib/action_mailer/vendor/tmail/header.rb
index 73639b5629..b4ef1809f0 100755
--- a/actionmailer/lib/action_mailer/vendor/tmail/header.rb
+++ b/actionmailer/lib/action_mailer/vendor/tmail/header.rb
@@ -754,9 +754,11 @@ module TMail
strategy.meta @main
end
@params.each do |k,v|
- strategy.meta ';'
- strategy.space
- strategy.kv_pair k, v
+ if v
+ strategy.meta ';'
+ strategy.space
+ strategy.kv_pair k, v
+ end
end
end