|
@ -47,7 +47,9 @@ class MailParserController(http.Controller): |
|
|
return werkzeug.exceptions.UnsupportedMediaType( |
|
|
return werkzeug.exceptions.UnsupportedMediaType( |
|
|
_("Unparsable message! The file has to be of type: message/rfc822")) |
|
|
_("Unparsable message! The file has to be of type: message/rfc822")) |
|
|
else: |
|
|
else: |
|
|
message = request.env['mail.thread'].message_parse(content.decode("latin-1").encode("utf8"), False) |
|
|
|
|
|
|
|
|
if not attachment: |
|
|
|
|
|
content = content.decode("latin-1").encode("utf8") |
|
|
|
|
|
message = request.env['mail.thread'].message_parse(content, False) |
|
|
return self._make_parse_response(request.httprequest.url, message, attachment) |
|
|
return self._make_parse_response(request.httprequest.url, message, attachment) |
|
|
|
|
|
|
|
|
def _set_query_parameter(self, url, param_name, param_value): |
|
|
def _set_query_parameter(self, url, param_name, param_value): |
|
|