Skip to content

Commit 0482482

Browse files
Merge pull request #435 from TeamMsgExtractor/next-release
Fix for #434
2 parents 04c2deb + 7eb029d commit 0482482

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
**v0.50.1**
2+
* [[TeamMsgExtractor #434](https://github.com/TeamMsgExtractor/msg-extractor/issues/434)] Fix bug introduced in previous version.
3+
14
**v0.50.0**
2-
* [[TeamMsgExtractor #432](https://github.com/TeamMsgExtractor/msg-extractor/issues/432)] Adjust html header code to replace non-ascii characters with escaped versions. Also adujusted plain text to html conversion to ensure non-ascii character from the body are encoded to escpaed values to be safe.
5+
* [[TeamMsgExtractor #432](https://github.com/TeamMsgExtractor/msg-extractor/issues/432)] Adjust html header code to replace non-ascii characters with escaped versions. Also adjusted plain text to html conversion to ensure non-ascii character from the body are encoded to escaped values to be safe.
36
* Made some corrections to `NullDate`.
47

58
**v0.49.0**

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ your access to the newest major version of extract-msg.
260260
.. |License: GPL v3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg
261261
:target: LICENSE.txt
262262

263-
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.50.0-blue.svg
264-
:target: https://pypi.org/project/extract-msg/0.50.0/
263+
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.50.1-blue.svg
264+
:target: https://pypi.org/project/extract-msg/0.50.1/
265265

266266
.. |PyPI2| image:: https://img.shields.io/badge/python-3.8+-brightgreen.svg
267267
:target: https://www.python.org/downloads/release/python-3810/

extract_msg/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2828

2929
__author__ = 'Destiny Peterson & Matthew Walker'
30-
__date__ = '2024-10-07'
31-
__version__ = '0.50.0'
30+
__date__ = '2024-10-08'
31+
__version__ = '0.50.1'
3232

3333
__all__ = [
3434
# Modules:

extract_msg/msg_classes/message_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ def htmlInjectableHeader(self) -> str:
12131213
prefix = '<div id="injectedHeader"><div><p class="MsoNormal">'
12141214
suffix = '<o:p></o:p></p></div></div>'
12151215
joinStr = '<br/>'
1216-
formatter = (lambda name, value: f'<b>{name}:</b>&nbsp;{inputToString(htmlSanitize(value), self.stringEncoding).encode('ascii', 'xmlcharrefreplace').decode()}')
1216+
formatter = (lambda name, value: f'<b>{name}:</b>&nbsp;{inputToString(htmlSanitize(value), self.stringEncoding).encode("ascii", "xmlcharrefreplace").decode()}')
12171217

12181218
return self.getInjectableHeader(prefix, joinStr, suffix, formatter)
12191219

0 commit comments

Comments
 (0)