-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from rmlt/fix_message_rfc822_attachments__bas…
…ed_on_master Fix message/rfc822 attachment processing
- Loading branch information
Showing
3 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
django_mailbox/tests/messages/message_with_rfc822_attachment.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
From: Adam Coddington <[email protected]> | ||
To: Adam Coddington <[email protected]> | ||
Subject: Email with RFC 822 attachment | ||
Date: Fri, 15 May 2020 11:15:00 +0000 | ||
Message-ID: <[email protected]> | ||
Content-Type: multipart/mixed; | ||
boundary="_004_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_" | ||
Return-Path: [email protected] | ||
MIME-Version: 1.0 | ||
|
||
--_004_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_ | ||
Content-Type: multipart/alternative; | ||
boundary="_000_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_" | ||
--_000_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_ | ||
Content-Type: text/plain; charset="iso-8859-1" | ||
Content-Transfer-Encoding: quoted-printable | ||
Dear Sir or Madam, | ||
I am sending you an email message as an attachment. | ||
--_000_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_ | ||
Content-Type: text/html; charset="iso-8859-1" | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
<html xmlns=3D"http://www.w3.org/TR/REC-html40"> | ||
<head> | ||
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= | ||
1"> | ||
</head> | ||
<body> | ||
<div> | ||
<p>Dear Sir or Madam,</p> | ||
<p>I am sending you an email message as an attachment.</p> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
--_000_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_-- | ||
|
||
--_004_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_ | ||
Content-Type: message/rfc822 | ||
Content-Disposition: attachment; | ||
creation-date="Fri, 15 May 2020 11:10:00 GMT"; | ||
modification-date="Fri, 15 May 2020 11:10:00 GMT" | ||
From: Adam Coddington <[email protected]> | ||
To: Adam Coddington <[email protected]> | ||
Subject: Attached email | ||
Date: Fri, 15 May 2020 09:00:00 +0000 | ||
Message-ID: <[email protected]> | ||
Content-Type: text/plain; charset="iso-8859-1" | ||
Content-Transfer-Encoding: quoted-printable | ||
MIME-Version: 1.0 | ||
Hello! | ||
This is the attached email. | ||
--_004_ce1f843c1a2d4de7a0c7c78c84a50f8dadamcoddington.net_-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters