-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure UTF-8 surogates escaped on save - fix #159 #164
Open
ad-m
wants to merge
1
commit into
coddingtonbear:master
Choose a base branch
from
watchdogpolska:fix-issue-159
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: <[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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm feeling a little conflicted about this -- we'd be fundamentally changing the method of encoding stored files if we do this, no? I might be misunderstanding what we're doing, here, though.