sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit c206cf1f0585a1c1e1cd4fb8627c2dd4881f5afc
parent ae11e59604a72c34f5297c17553cb3c277afe98c
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Mon, 12 Oct 2009 09:31:01 -0400

Merge branch 'master' into next

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