sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 09a8cdae3778c8605956046fa129571bf83f4453
parent 95eaf6e03568d9e33adb32b721e8b52b70a73ff6
Author: BenoƮt PIERRE <benoit.pierre@gmail.com>
Date:   Wed, 12 Aug 2009 00:09:40 +0200

don't redirect stderr to /dev/null when calling run-mailcap

Some programs will fail to work correctly if this is done, like for
example: w3m --dump, to view HTML files.

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
@@ -131,7 +131,7 @@ EOS
     def initial_state; :open end
     def viewable?; @lines.nil? end
     def view_default! path
-      cmd = "/usr/bin/run-mailcap --action=view '#{@content_type}:#{path}' 2>/dev/null"
+      cmd = "/usr/bin/run-mailcap --action=view '#{@content_type}:#{path}'"
       Redwood::log "running: #{cmd.inspect}"
       system cmd
       $? == 0