aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-03 18:02:58 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-03 18:02:58 +0000
commitf87b9ed01d8196097ae04a383d215206d4396b9c (patch)
treee42c55c57d40b651e8a3021e9fc5bf1c7e690792
parentf296a8207cb966aeb7962f3b37a00ae3ca0504be (diff)
Delegate getting the body of a mail part to the mail handler.
-rw-r--r--app/models/incoming_message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 01bb675de..09fc652aa 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -751,7 +751,7 @@ class IncomingMessage < ActiveRecord::Base
ensure_parts_counted
attachments = []
for leaf in leaves
- body = leaf.body
+ body = MailHandler.get_part_body(leaf)
# As leaf.body causes MIME decoding which uses lots of RAM, do garbage collection here
# to prevent excess memory use. XXX not really sure if this helps reduce
# peak RAM use overall. Anyway, maybe there is something better to do than this.