Fixed: attachments from Apple Mail not added by mail handler (#8651).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6324 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-29 17:01:29 +00:00
parent b30f702156
commit 4f4b3594db
3 changed files with 251 additions and 1 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class MailHandler < ActionMailer::Base
end
def add_attachments(obj)
if email.has_attachments?
if email.attachments.any?
email.attachments.each do |attachment|
obj.attachments << Attachment.create(:container => obj,
:file => attachment,