diff options
author | Lisa Junger <ljunger@thoughtworks.com> | 2014-11-19 10:44:08 +0100 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-03 15:48:49 -0200 |
commit | f273d2abeefa0d77d306bcfab3135195afbc31c3 (patch) | |
tree | db0864f7e413f3c51756ecf9f32cdf235c1f4a90 /service/pixelated/controllers/mails_controller.py | |
parent | 6c5e6a65ed543193f676f601741fb597dc48e5dd (diff) |
added functionality for reply all to service.
Diffstat (limited to 'service/pixelated/controllers/mails_controller.py')
-rw-r--r-- | service/pixelated/controllers/mails_controller.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/pixelated/controllers/mails_controller.py b/service/pixelated/controllers/mails_controller.py index 3a2e0d3b..d84018dc 100644 --- a/service/pixelated/controllers/mails_controller.py +++ b/service/pixelated/controllers/mails_controller.py @@ -123,6 +123,10 @@ class MailsController: self._search_engine.index_mail(self._mail_service.mail(ident)) return respond_json({'ident': ident}, request) + def reply_all_template(self, request, mail_id): + mail = self._mail_service.reply_all_template(mail_id) + return respond_json(mail, request) + def _format_exception(self, exception): exception_info = map(str, list(exception.args)) return '\n'.join(exception_info) |