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:
parent
e6f9e6b94b
commit
8a34ac211c
3 changed files with 46 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue