mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Add failing message with utf-8 headers in attachment
This commit is contained in:
parent
ce6ce6b5dd
commit
81d6648e8c
2 changed files with 267 additions and 0 deletions
|
|
@ -145,6 +145,23 @@ class TestProcessEmail(EmailMessageTestCase):
|
|||
u'odpowied\u017a Burmistrza.jpg'
|
||||
)
|
||||
|
||||
def test_message_with_utf_headers_in_attachments(self):
|
||||
email_object = self._get_email_object(
|
||||
'message_with_utf8_headers_in_attachment.eml',
|
||||
)
|
||||
mailbox = Mailbox.objects.create()
|
||||
msg = mailbox.process_incoming_message(email_object)
|
||||
|
||||
expected_count = 2
|
||||
actual_count = msg.attachments.count()
|
||||
|
||||
self.assertEqual(
|
||||
expected_count,
|
||||
actual_count,
|
||||
)
|
||||
|
||||
# TODO: Verify filenames
|
||||
|
||||
def test_message_get_text_body(self):
|
||||
message = self._get_email_object('multipart_text.eml')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue