diff options
Diffstat (limited to 'app/models/mail_handler.rb')
-rw-r--r-- | app/models/mail_handler.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 3c9857873..c100f8d97 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -405,6 +405,11 @@ class MailHandler < ActionMailer::Base else [email] end + + parts.reject! do |part| + part.header[:content_disposition].try(:disposition_type) == 'attachment' + end + @plain_text_body = parts.map {|p| Redmine::CodesetUtil.to_utf8(p.body.decoded, p.charset)}.join("\r\n") # strip html tags and remove doctype directive |