1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00
django-mailbox/django_mailbox/tests/messages/message_with_text_attachment.eml
Adam Coddington ff433a24f4 Always store payload parts having a Content-Disposition of 'attachment' as attachments, even if their Content-Type is text/plain. Fixes #52.
Squashed commit of the following:

commit 5bcbac33d6
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 23:05:15 2015 -0700

    Add handling for situations in which the message was deleted in another thread before processing.

commit 6183f68b39
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 22:58:15 2015 -0700

    Always store message as attachment if its content-disposition is marked as such.

commit 4c16494b1a
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 22:46:52 2015 -0700

    Adding a (hopefully) failing test case for #52.
2015-07-07 23:09:41 -07:00

33 lines
1.1 KiB
Text

MIME-Version: 1.0
Received: by 10.76.173.10 with HTTP; Tue, 7 Jul 2015 19:50:29 -0700 (PDT)
X-Originating-IP: [71.63.222.120]
Date: Tue, 7 Jul 2015 19:50:29 -0700
Delivered-To: me@adamcoddington.net
Message-ID: <CAMdmm+ixRrk+SY2ktbTbGcQctY0VrCZ9C2VJtMqwiY3Zce23Ng@mail.gmail.com>
Subject: Test e-mail message
From: Adam Coddington <me@adamcoddington.net>
To: Adam Coddington <me@adamcoddington.net>
Content-Type: multipart/mixed; boundary=089e0111d1089c45be051a5433d8
--089e0111d1089c45be051a5433d8
Content-Type: multipart/alternative; boundary=089e0111d1089c45b4051a5433d6
--089e0111d1089c45b4051a5433d6
Content-Type: text/plain; charset=UTF-8
Has an attached text document, too!
--089e0111d1089c45b4051a5433d6
Content-Type: text/html; charset=UTF-8
<div dir="ltr">Has an attached text document, too!</div>
--089e0111d1089c45b4051a5433d6--
--089e0111d1089c45be051a5433d8
Content-Type: text/plain; charset=US-ASCII; name="attachment.txt"
Content-Disposition: attachment; filename="attachment.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ibu64edo0
VGhpcyBpcyBhbiBhdHRhY2htZW50Lgo=
--089e0111d1089c45be051a5433d8--