commit 1d10748b5a58c3e7cf125fe45ba44f82e47c1970
parent aa1b6846c33b44dfd723ad9657448e45e7a2a143
Author: Decklin Foster <decklin@red-bean.com>
Date: Sun, 26 Oct 2008 14:31:12 -0400
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).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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