aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mail_handler/mail_handler.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-09-04 11:12:32 +0100
committerLouise Crow <louise.crow@gmail.com>2013-09-04 11:12:32 +0100
commit399d638bdf583b4166b8ab87818509a6c5375e78 (patch)
tree858c67f4ce215c3f548c324cf871b56ac78f76af /lib/mail_handler/mail_handler.rb
parentbce48a138d6033b7e927ecd8b7b4cec6d15fbe62 (diff)
parent40bfb44da55f134e3525c48d5b98c7f096f01061 (diff)
Merge branch 'hotfix/0.13.0.2' into wdtk
Diffstat (limited to 'lib/mail_handler/mail_handler.rb')
-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 9c955cccd..918f91180 100644
--- a/lib/mail_handler/mail_handler.rb
+++ b/lib/mail_handler/mail_handler.rb
@@ -81,7 +81,7 @@ module MailHandler
default_params = { :append_to => text, :binary_output => false }
if content_type == 'application/vnd.ms-word'
AlaveteliExternalCommand.run("wvText", tempfile.path, tempfile.path + ".txt",
- { :memory_limit => 536870912 } )
+ { :memory_limit => 536870912, :timeout => 120 } )
# Try catdoc if we get into trouble (e.g. for InfoRequestEvent 2701)
if not File.exists?(tempfile.path + ".txt")
AlaveteliExternalCommand.run("catdoc", tempfile.path, default_params)