sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 372816a94a59da4ee82cf0e4972a7b89559e4492
parent 3dd71be1442e82d5a010cccba4cfeaf98782321a
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Wed, 25 Sep 2013 18:13:37 +0200

fix encode on mentions_attchments? too

Diffstat:
M lib/sup/modes/edit_message_mode.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/modes/edit_message_mode.rb b/lib/sup/modes/edit_message_mode.rb
@@ -635,7 +635,7 @@ private
     if HookManager.enabled? "mentions-attachments"
       HookManager.run "mentions-attachments", :header => @header, :body => @body
     else
-      @body.any? {  |l| l =~ /^[^>]/ && l =~ /\battach(ment|ed|ing|)\b/i }
+      @body.any? {  |l| l.fix_encoding =~ /^[^>]/ && l.fix_encoding =~ /\battach(ment|ed|ing|)\b/i }
     end
   end