sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 479ebb3fc2cbdd99d7f5e1681644584249e5491d
parent eb98b8e7b9694e166681da9144d089747ae76cd9
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Thu, 24 Jan 2008 15:09:28 -0800

properly escape filenames in call to run-mailcap

Otherwise, filenames with spaces never work.

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