aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-05 16:41:43 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-05 16:41:43 +0000
commit0375214ca0c295f0316ec80be8aebdbd1d1c1b8a (patch)
tree87fecb09ec0a7a8fc38d983f079f7952d99e762e /app/models
parent8d7a02933e9d867bd2d3ce2209df2c80a316fe34 (diff)
Add a wrapper method for get_attachment_leaves.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index bb6c9dc21..b059b143f 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -593,10 +593,7 @@ class IncomingMessage < ActiveRecord::Base
def extract_attachments!
force = true
- leaves = MailHandler.get_attachment_leaves(self.mail(force)) # XXX check where else this is called from
- # XXX we have to call MailHandler.ensure_parts_counted after get_attachment_leaves
- # which is really messy.
- MailHandler.ensure_parts_counted(self.mail)
+ leaves = MailHandler.get_attachment_attributes(self.mail(force))
attachments = []
for leaf in leaves
body = MailHandler.get_part_body(leaf)