sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit d19eda45643dff558324c6c2f34aa0148f9d65d0
parent a8b5c6db0587fe4383758dc3400aaab85ad22d8b
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Sat,  3 Oct 2009 11:19:57 -0700

don't downcase a nil content-type

Diffstat:
M lib/sup/message.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -499,7 +499,7 @@ private
         # Lowercase the filename because searches are easier that way 
         @attachments.push filename.downcase unless filename =~ /^sup-attachment-/
         add_label :attachment unless filename =~ /^sup-attachment-/
-        content_type = m.header.content_type.downcase || "application/unknown" # sometimes RubyMail gives us nil
+        content_type = (m.header.content_type || "application/unknown").downcase # sometimes RubyMail gives us nil
         [Chunk::Attachment.new(content_type, filename, m, sibling_types)]
 
       ## otherwise, it's body text