From ae97f653dfa70f002c6515bcd45d2fe57ba4656d Mon Sep 17 00:00:00 2001 From: William Morgan Date: Tue, 22 Apr 2008 18:29:39 -0700 Subject: [PATCH] bugfix: exception when forwarded attachment is not a known mime type --- lib/sup/modes/forward-mode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2