aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tmail_extensions.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-03 18:20:56 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-03 18:20:56 +0000
commit7f4563d2a13b5a13649db50f1f2dc166220bbab5 (patch)
tree0f5bcbd1916f812ff5224ab9bab074ba7bd24a0d /lib/tmail_extensions.rb
parent4c18adac5c6a1818ca305fa1393d61da3dbe16c7 (diff)
Enable monkeypatch which fixes problem with odd MIME encoding
Diffstat (limited to 'lib/tmail_extensions.rb')
-rw-r--r--lib/tmail_extensions.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tmail_extensions.rb b/lib/tmail_extensions.rb
index 4f0651731..0efb9e622 100644
--- a/lib/tmail_extensions.rb
+++ b/lib/tmail_extensions.rb
@@ -53,13 +53,15 @@ module TMail
if h = @header['content-type']
h.main_type = main
h.sub_type = sub
- h.params.clear # if !h.params.nil? # XXX this if statement is the fix # XXX disabled until works with test
+ h.params.clear if !h.params.nil? # XXX this if statement is the fix # XXX disabled until works with test
else
store 'Content-Type', "#{main}/#{sub}"
end
@header['content-type'].params.replace param if param
str
end
+ # Need to make sure this alias calls the Monkeypatch too
+ alias content_type= set_content_type
end