commit 701e2d14473e4090a57c5d22ef6df89f9bce5b51
parent 5cb77d7f09872013df43d9e96cdd4078c21e0aa1
Author: Mark Alexander <marka@pobox.com>
Date: Tue, 2 Jun 2009 09:29:13 -0700
handle nil charset on attachments
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
@@ -99,7 +99,7 @@ EOS
text =
case @content_type
when /^text\/plain\b/
- Iconv.easy_decode $encoding, encoded_content.charset, @raw_content
+ Iconv.easy_decode $encoding, encoded_content.charset || $encoding, @raw_content
else
HookManager.run "mime-decode", :content_type => content_type,
:filename => lambda { write_to_disk },