From dad07c7d5c5116a95dc55fb391b36e4aa0055d53 Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Wed, 22 May 2013 13:55:36 +0100 Subject: Suppress STDERR noise from the tnef binary --- lib/mail_handler/mail_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mail_handler/mail_handler.rb') diff --git a/lib/mail_handler/mail_handler.rb b/lib/mail_handler/mail_handler.rb index 4d942768b..e199ae8b6 100644 --- a/lib/mail_handler/mail_handler.rb +++ b/lib/mail_handler/mail_handler.rb @@ -17,7 +17,7 @@ module MailHandler def tnef_attachments(content) attachments = [] Dir.mktmpdir do |dir| - IO.popen("tnef -K -C #{dir}", "wb") do |f| + IO.popen("tnef -K -C #{dir} 2> /dev/null", "wb") do |f| f.write(content) f.close if $?.signaled? -- cgit v1.2.3