forked from coddingtonbear/django-mailbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure UTF-8 surogates escaped on save - fix coddingtonbear#159
- Loading branch information
Showing
4 changed files
with
89 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ include/* | |
dummy_project/* | ||
.cache/ | ||
.tox/ | ||
messages | ||
/messages | ||
|
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
46 changes: 46 additions & 0 deletions
46
django_mailbox/tests/messages/message_with_utf8_surrogates.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,46 @@ | ||
Return-path: <SRS0=HZOvtU=DM=[email protected]> | ||
Envelope-to: [email protected] | ||
Delivery-date: Sat, 16 Dec 2017 16:22:42 +0100 | ||
Received: from mx1.wp.pl ([212.77.101.6]) | ||
by s50.hekko.net.pl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) | ||
(Exim 4.89) (envelope-from <[email protected]>) id 1eQEII-0005Fu-Cs | ||
for [email protected]; Sat, 16 Dec 2017 16:22:42 +0100 | ||
Received: (wp-smtpd smtp.wp.pl 33592 invoked from network); | ||
16 Dec 2017 16:22:11 +0100 | ||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; | ||
t=1513437731; bh=6Ox0FVna7vMxBu5CbF0s6HvpkNalENwSSgDxNJ/Rsdc=; | ||
h=From:To:Subject; | ||
b=QnrdNDBDNLuENN9QS0Pvn85/bDE1Fc6jJrvKUdnApFrykwzbHxXxCG4qX7g3sS3Qj | ||
xxHGNf8UXZh3zyCln2EZpUD03LgkppMpTbv3tLKA4HSnaT7txr6AWHq2y8A/YQo7EY | ||
2806CYWtFCKYoVolzDN9lctM2nEoZpD5jOVZqYsM= | ||
Received: from public-gprs394416.centertel.pl (HELO REDACTED) | ||
([email protected]@[37.47.171.241]) (envelope-sender <[email protected]>) | ||
by smtp.wp.pl (WP-SMTPD) with SMTP | ||
for <[email protected]>; 16 Dec 2017 16:22:11 +0100 | ||
Message-ID: <BD6D8EECA3A74E9A9ABD7A1EEA593F76@REDACTED> | ||
From: <[email protected]> | ||
To: <[email protected]> | ||
Subject: =?windows-1250?Q?Do_czego_te=BF_s=B9_zdolni_Polscy_s=EAdziowie_..._?= | ||
Date: Sat, 16 Dec 2017 16:21:04 +0100 | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/mixed; | ||
boundary="----=_NextPart_000_0018_01D37689.E058CEF0" | ||
X-Spam-Status: No, message_size=7331926 larger than 200K | ||
|
||
To jest wielocz�ciowa wiadomo�� w formacie MIME. | ||
|
||
------=_NextPart_000_0018_01D37689.E058CEF0 | ||
Content-Type: multipart/alternative; | ||
boundary="----=_NextPart_001_0019_01D37689.E058CEF0" | ||
------=_NextPart_001_0019_01D37689.E058CEF0 | ||
Content-Type: text/plain; | ||
charset="windows-1250" | ||
Content-Transfer-Encoding: quoted-printable | ||
REDACTED | ||
------=_NextPart_001_0019_01D37689.E058CEF0-- | ||
|
||
------=_NextPart_000_0018_01D37689.E058CEF0-- |
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