Commit c8b7ebfa authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! erp5_interface_post: add preview tab on Internet Message Post

parent a09aef2d
......@@ -12,14 +12,6 @@ message = email.message_from_string(data)
payload = message.get_payload()
while isinstance(payload, list):
payload = payload[0].get_payload()
payload = payload[0].get_payload(decode=True)
def escapeMessage(message):
"""
An Internet Mail Message has a line length limit, and truncated lines
are added "=" at the end. Thus, other "=" in the payloads are escaped
to "=3D"
"""
return message.replace('=\n', '').replace('=3D', '=')
return escapeMessage(payload)
return payload
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.Base_getFirstPartFromMultipartMessage(here.data)</string> </value>
<value> <string>python: here.Base_getFirstPartFromMultipartMessage(here.getData())</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment