From 1a75c4f35f0dd7ea3598a3bfa467bcedc5474faa Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Wed, 22 May 2013 13:47:01 +0100 Subject: Move the mapi requires to where they're really needed Handling of outlook-packed attachments would fail from rake tasks or in the console without requiring 'mapi/msg' and 'mapi/convert' beforehand. Instead, require them in the source file where they're actually used. --- lib/mail_handler/backends/mail_backend.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/mail_handler/backends') diff --git a/lib/mail_handler/backends/mail_backend.rb b/lib/mail_handler/backends/mail_backend.rb index 42180dd6f..03d78e0a3 100644 --- a/lib/mail_handler/backends/mail_backend.rb +++ b/lib/mail_handler/backends/mail_backend.rb @@ -1,4 +1,6 @@ require 'mail' +require 'mapi/msg' +require 'mapi/convert' module Mail class Message -- cgit v1.2.3