1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

Properly handle RFC2822 line continuations; resolves #4.

This commit is contained in:
Adam Coddington 2013-06-05 12:43:28 -07:00
parent e6f9e6b94b
commit 8a34ac211c
3 changed files with 46 additions and 1 deletions

View file

@ -393,7 +393,7 @@ class Message(models.Model):
return get_body_from_message(
self.get_email_object()
)
).replace('=\n', '').rstrip('\n')
def get_email_object(self):
return email.message_from_string(self.body)