sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 04fd845051fc30e6b8959aefbc3b01a9005fcbed
parent 0c59a74c155a9a2cd36f09905cf762d1ddcabfb0
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Sun, 29 Sep 2013 13:52:47 +0200

debug message on decoding text

Diffstat:
M lib/sup/message_chunks.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/message_chunks.rb b/lib/sup/message_chunks.rb
@@ -129,6 +129,7 @@ EOS
           @lines = text.gsub("\r\n", "\n").gsub(/\t/, "        ").gsub(/\r/, "").split("\n")
         rescue Encoding::CompatibilityError
           @lines = text.fix_encoding!.gsub("\r\n", "\n").gsub(/\t/, "        ").gsub(/\r/, "").split("\n")
+          debug "error while decoding message text, falling back to default encoding, expect errors in encoding: #{text.fix_encoding!}"
         end
 
         @quotable = true