mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Base64-encode message body when storing in DB.
* Since Django requires that the content stored in a TextField be unicode, we need some way to encode the message safely. In situations before where a single-byte non-7-bit-clean encoding were used, django-mailbox could explode when writing the message copy to the database; this should ameliorate that problem. * Reverts earlier changesets' encoding normalization.
This commit is contained in:
parent
4c3af900c6
commit
88d122c421
5 changed files with 126 additions and 115 deletions
|
|
@ -3,7 +3,7 @@ Subject: Tjest
|
|||
From: "Somebody" <somebody@somewhere.com>
|
||||
To: idontknow@somewhere.com
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset="raspberries"
|
||||
Content-Type: text/plain; charset="cp1251"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Это сообщение имеет неверная кодировка.
|
||||
Это сообщение имеет неправильную кодировка.
|
||||
Loading…
Add table
Add a link
Reference in a new issue