diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-05-16 11:09:57 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-05-16 11:09:57 +0100 |
commit | 4b4b92f9a1bfa5ef5828ab15e7d9abdbd288f728 (patch) | |
tree | 1e38aced05ae2dd5c0d7bbccabbc1846b3554506 /lib/mail_handler/mail_handler.rb | |
parent | 2cfad24e21f954099ae84d782373d3bc6336db37 (diff) | |
parent | 323318c600480e15f177e01f88946b15bad2db84 (diff) |
Merge remote-tracking branch 'origin/hotfix/0.9.0.3'0.9.0.3
Diffstat (limited to 'lib/mail_handler/mail_handler.rb')
-rw-r--r-- | lib/mail_handler/mail_handler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mail_handler/mail_handler.rb b/lib/mail_handler/mail_handler.rb index 8b227b9ca..cd5abfab7 100644 --- a/lib/mail_handler/mail_handler.rb +++ b/lib/mail_handler/mail_handler.rb @@ -84,7 +84,8 @@ module MailHandler tempfile.flush default_params = { :append_to => text, :binary_output => false } if content_type == 'application/vnd.ms-word' - AlaveteliExternalCommand.run("wvText", tempfile.path, tempfile.path + ".txt") + AlaveteliExternalCommand.run("wvText", tempfile.path, tempfile.path + ".txt", + { :memory_limit => 536870912 } ) # 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) |