sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit ef1d8a9333f8d261deeb88a7c1cb0cc58d7b6563
parent f5d9f2ce214a3f90e9716a8b2dc35dc74ef5a9de
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sat, 22 Aug 2009 10:33:41 -0400

Merge branch 'logging' into next

Diffstat:
M lib/sup/imap.rb | 2 +-
M lib/sup/util.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb
@@ -276,7 +276,7 @@ private
 
   def say s
     @say_id = BufferManager.say s, @say_id if BufferManager.instantiated?
-    debug s
+    info s
   end
 
   def shutup
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -654,7 +654,7 @@ class Iconv
     begin
       Iconv.iconv(target + "//IGNORE", charset, text + " ").join[0 .. -2]
     rescue Errno::EINVAL, Iconv::InvalidEncoding, Iconv::InvalidCharacter, Iconv::IllegalSequence => e
-      info "couldn't transcode text from #{charset} to #{target} (\"#{text[0 ... 20]}\"...)"
+      warn "couldn't transcode text from #{charset} to #{target} (\"#{text[0 ... 20]}\"...) (got #{e.message}); using original as is"
       text
     end
   end