aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mail_handler/backends/tmail_backend.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-11-29 13:05:01 +0000
committerLouise Crow <louise.crow@gmail.com>2012-11-29 13:05:01 +0000
commit2864188de2e3eb1af03fd83cb10a3701ce8386ec (patch)
tree97e80ba84838ea979a9f4e4fe0d8623560d1da06 /lib/mail_handler/backends/tmail_backend.rb
parent8ef3be53197c02f51df623a4c31c4ca1a996e1ce (diff)
Add method for getting the body of a mail part to mail handling modules.
Diffstat (limited to 'lib/mail_handler/backends/tmail_backend.rb')
-rw-r--r--lib/mail_handler/backends/tmail_backend.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mail_handler/backends/tmail_backend.rb b/lib/mail_handler/backends/tmail_backend.rb
index 87aba73d7..2a61a5d05 100644
--- a/lib/mail_handler/backends/tmail_backend.rb
+++ b/lib/mail_handler/backends/tmail_backend.rb
@@ -41,6 +41,10 @@ module MailHandler
return part_file_name
end
+ def get_part_body(mail_part)
+ mail_part.body
+ end
+
def address_from_name_and_email(name, email)
if !MySociety::Validate.is_valid_email(email)
raise "invalid email " + email + " passed to address_from_name_and_email"