aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tnef.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tnef.rb')
-rw-r--r--lib/tnef.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tnef.rb b/lib/tnef.rb
index ff88b0005..1c941f8b0 100644
--- a/lib/tnef.rb
+++ b/lib/tnef.rb
@@ -9,7 +9,7 @@ class TNEF
main = TMail::Mail.new
main.set_content_type 'multipart', 'mixed', { 'boundary' => TMail.new_boundary }
Dir.mktmpdir do |dir|
- IO.popen("/usr/bin/tnef -K -C #{dir}", "w") do |f|
+ IO.popen("#{`which tnef`.chomp} -K -C #{dir}", "w") do |f|
f.write(content)
f.close
if $?.signaled?