From: BenoƮt PIERRE Date: Tue, 11 Aug 2009 22:09:40 +0000 (+0200) Subject: don't redirect stderr to /dev/null when calling run-mailcap X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=09a8cdae3778c8605956046fa129571bf83f4453;p=sup 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. --- diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb index 0d742d9..4c947e1 100644 --- 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