From 1d10748b5a58c3e7cf125fe45ba44f82e47c1970 Mon Sep 17 00:00:00 2001 From: Decklin Foster Date: Sun, 26 Oct 2008 14:31:12 -0400 Subject: [PATCH] Don't redirect run-mailcap to /dev/null It gets confused about stdout not being a terminal, and HTML attachments will be converted to text/plain which uses the needsterminal entry for less(1). --- 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 index 7eabcdf..cc895f3 100644 --- a/lib/sup/message-chunks.rb +++ b/lib/sup/message-chunks.rb @@ -116,7 +116,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}' > /dev/null 2> /dev/null" + cmd = "/usr/bin/run-mailcap --action=view '#{@content_type}:#{path}' 2>/dev/null" Redwood::log "running: #{cmd.inspect}" system cmd $? == 0 -- 2.45.2