From: William Morgan Date: Wed, 23 Apr 2008 01:29:39 +0000 (-0700) Subject: bugfix: exception when forwarded attachment is not a known mime type X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ae97f653dfa70f002c6515bcd45d2fe57ba4656d;p=sup bugfix: exception when forwarded attachment is not a known mime type --- diff --git a/lib/sup/modes/forward-mode.rb b/lib/sup/modes/forward-mode.rb index 147efb6..b71be48 100644 --- a/lib/sup/modes/forward-mode.rb +++ b/lib/sup/modes/forward-mode.rb @@ -42,7 +42,7 @@ class ForwardMode < EditMessageMode end attachments.each do |c| - mime_type = MIME::Types[c.content_type].first || MIME::Types["application/octet-stream"] + mime_type = MIME::Types[c.content_type].first || MIME::Types["application/octet-stream"].first attachment_hash[c.filename] = RMail::Message.make_attachment c.raw_content, mime_type.content_type, mime_type.encoding, c.filename end