diff --git a/CHANGES.rst b/CHANGES.rst index 3bb717e..e8bbf2a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,12 @@ Change history - TBD +4.4.2 (2019-02-20) +------------------ + +- Fix setting charset for attached messages in a multipart/alternative message + (issue #41) + 4.4.1 (2017-04-21) ------------------ diff --git a/repoze/sendmail/encoding.py b/repoze/sendmail/encoding.py index 03fff54..855e8a4 100644 --- a/repoze/sendmail/encoding.py +++ b/repoze/sendmail/encoding.py @@ -71,7 +71,7 @@ def cleanup_message(message, payload = message.get_payload() if payload and isinstance(payload, text_type): - charset = message.get_charset() + charset = message.get_content_charset() if not charset: charset, encoded = best_charset(payload) message.set_payload(payload, charset=charset) diff --git a/setup.py b/setup.py index c7455ab..80ee0c8 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ def _read_file(filename): CHANGES = _read_file('CHANGES.rst') setup(name='repoze.sendmail', - version = '4.5.dev0', + version = '4.4.2', url='http://www.repoze.org', license='ZPL 2.1', description='Repoze Sendmail',