sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 07bf44e0451c8ff2708800d4a6f139a7caf35218
parent 654cb90c9cc5b1540fbfd6cd378445e611df9316
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sat, 26 Sep 2009 10:44:46 -0700

bugfix bugfix: downcase strings, not other things!

Diffstat:
M lib/sup/message.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -374,12 +374,12 @@ private
     end
 
     ## this probably will never happen
-    if payload.header.downcase.content_type == "application/pgp-signature"
+    if payload.header.content_type.downcase == "application/pgp-signature"
       warn "multipart/signed with payload content type #{payload.header.content_type}"
       return
     end
 
-    if signature.header.downcase.content_type != "application/pgp-signature"
+    if signature.header.content_type.downcase != "application/pgp-signature"
       ## unknown signature type; just ignore.
       #warn "multipart/signed with signature content type #{signature.header.content_type}"
       return