aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-11-15 14:05:47 +0000
committerLouise Crow <louise.crow@gmail.com>2012-11-15 14:05:47 +0000
commitc8df001a9a9f6c41c37fa7dc7f919e7ef5986626 (patch)
tree9adf3fe43d5601ac763acbcd0ebe41b33d8ed10f
parent4bdab94e9d4f0a64647e5f8534c1fea8b4ba2809 (diff)
Use mail handler in translation task.
-rw-r--r--lib/tasks/translation.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake
index f6611cc80..273c12bfa 100644
--- a/lib/tasks/translation.rake
+++ b/lib/tasks/translation.rake
@@ -4,7 +4,7 @@ namespace :translation do
include Usage
def write_email(email, email_description, output_file)
- mail_object = TMail::Mail.parse(email.to_s)
+ mail_object = MailHandler.mail_from_raw_email(email.to_s, decode=false)
output_file.write("\n")
output_file.write("Description of email: #{email_description}\n")
output_file.write("Subject line: #{mail_object.subject}\n")
@@ -86,7 +86,7 @@ namespace :translation do
'fixtures',
'files',
'incoming-request-plain.email'))
- response_mail = TMail::Mail.parse(content)
+ response_mail = MailHandler.mail_from_raw_email(content, decode=false)
response_mail.from = "authority@example.com"
stopped_responses_email = RequestMailer.create_stopped_responses(info_request,