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:
parent
7c310eee86
commit
424a70ee51
1 changed files with 5 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue