1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 14:32:34 +02:00

Debug test_message_reply test failure

This commit is contained in:
Jonas Haag 2016-01-19 17:38:29 +01:00 committed by Adam Coddington
parent 7c310eee86
commit 424a70ee51

View file

@ -362,7 +362,11 @@ class Mailbox(models.Model):
def _process_message(self, message):
msg = Message()
if STORE_ORIGINAL_MESSAGE:
msg.eml.save('%s.eml' % uuid.uuid4(), ContentFile(message.as_string(unixfrom=True)), save=False)
msg.eml.save(
'%s.eml' % uuid.uuid4(),
ContentFile(message.as_string(unixfrom=True)),
save=False
)
msg.mailbox = self
if 'subject' in message:
msg.subject = convert_header_to_unicode(message['subject'])[0:255]