aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-05-22 13:55:36 +0100
committerMark Longair <mhl@pobox.com>2013-05-22 13:58:24 +0100
commitdad07c7d5c5116a95dc55fb391b36e4aa0055d53 (patch)
treece524c67b1f6b28960a38011a855cdeaa36c3cf4
parent1a75c4f35f0dd7ea3598a3bfa467bcedc5474faa (diff)
Suppress STDERR noise from the tnef binary
-rw-r--r--lib/mail_handler/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
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?