Browse Source
fixup! [ADD] PoC for outlook messages
pull/242/head
Holger Brunn
7 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
3 additions and
1 deletions
-
mail_drop_target/models/mail_thread.py
|
|
@ -26,7 +26,9 @@ class MailThread(models.AbstractModel): |
|
|
|
message_msg = Message(StringIO(b64decode(message))) |
|
|
|
message_email = self.env['ir.mail_server'].build_email( |
|
|
|
message_msg.sender, message_msg.to.split(','), message_msg.subject, |
|
|
|
message_msg.body, email_cc=message_msg.cc, |
|
|
|
# prefer html bodies to text |
|
|
|
message_msg._getStream('__substg1.0_10130102') or message_msg.body, |
|
|
|
email_cc=message_msg.cc, |
|
|
|
headers={'date': message_msg.date}, |
|
|
|
attachments=[ |
|
|
|
(attachment.longFilename, attachment.data) |
|
|
|