diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mail_handler/mail_handler.rb | 2 | ||||
-rw-r--r-- | lib/tasks/temp.rake | 1 |
2 files changed, 2 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) diff --git a/lib/tasks/temp.rake b/lib/tasks/temp.rake index 127c32921..d371ad0dc 100644 --- a/lib/tasks/temp.rake +++ b/lib/tasks/temp.rake @@ -24,6 +24,7 @@ namespace :temp do :described_state => info_request.described_state, :calculated_state => info_request.described_state, :params => params) + info_request.info_request_events.each{ |event| event.xapian_mark_needs_index } end end |