sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 0c59a74c155a9a2cd36f09905cf762d1ddcabfb0
parent db4f651deeae5a8a952c4de2edbeafdb6f402e41
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Sun, 29 Sep 2013 12:10:18 +0200

specify exception

Diffstat:
M lib/sup/message_chunks.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message_chunks.rb b/lib/sup/message_chunks.rb
@@ -127,7 +127,7 @@ EOS
         text = text.transcode(encoded_content.charset || $encoding, text.encoding)
         begin
           @lines = text.gsub("\r\n", "\n").gsub(/\t/, "        ").gsub(/\r/, "").split("\n")
-        rescue
+        rescue Encoding::CompatibilityError
           @lines = text.fix_encoding!.gsub("\r\n", "\n").gsub(/\t/, "        ").gsub(/\r/, "").split("\n")
         end