aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parent8d7a02933e9d867bd2d3ce2209df2c80a316fe34 (diff)
Add a wrapper method for get_attachment_leaves.
Diffstat (limited to 'lib')
-rw-r--r--lib/mail_handler/backends/tmail_backend.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mail_handler/backends/tmail_backend.rb b/lib/mail_handler/backends/tmail_backend.rb
index 92d478541..9bcc2ab1f 100644
--- a/lib/mail_handler/backends/tmail_backend.rb
+++ b/lib/mail_handler/backends/tmail_backend.rb
@@ -130,6 +130,14 @@ module MailHandler
end
end
+ def get_attachment_attributes(mail)
+ leaves = get_attachment_leaves(mail)
+ # XXX we have to call ensure_parts_counted after get_attachment_leaves
+ # which is really messy.
+ ensure_parts_counted(mail)
+ leaves
+ end
+
# (This risks losing info if the unchosen alternative is the only one to contain
# useful info, but let's worry about that another time)
def get_attachment_leaves(mail)