Skip to content

Commit 0c4ad35

Browse files
Merge pull request #395 from TeamMsgExtractor/next-release
Version 0.46.1: Fix #394
2 parents 5574b55 + 9c61d62 commit 0c4ad35

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
**v0.46.1**
2+
* [[TeamMsgExtractor #394](https://github.com/TeamMsgExtractor/msg-extractor/issues/394)] Fix typo in props that caused the wrong number of bytes to be given to a struct.
3+
14
**v0.46.0**
25
* [[TeamMsgExtractor #95](https://github.com/TeamMsgExtractor/msg-extractor/issues/95)] Adjusted the `overrideEncoding` property of `MSGFile` to allow automatic encoding detection. Simply set the property to the string `"chardet"` and, assuming the `chardet` module is installed, it will analyze a number of the strings to try and form a consensus about the encoding. This will *ignore* the specified encoding *only if* if successfully detects. Otherwise it will log a warning and fall back to the default behavior.
36
* [[TeamMsgExtractor #387](https://github.com/TeamMsgExtractor/msg-extractor/issues/387)] Changed `extract_msg.utils.decodeRfc2047` to not throw decoding errors if the content given is not ASCII.

README.rst

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

262-
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.46.0-blue.svg
263-
:target: https://pypi.org/project/extract-msg/0.46.0/
262+
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.46.1-blue.svg
263+
:target: https://pypi.org/project/extract-msg/0.46.1/
264264

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

extract_msg/__init__.py

Lines changed: 2 additions & 2 deletions
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__ = '2023-11-08'
31-
__version__ = '0.46.0'
30+
__date__ = '2023-11-09'
31+
__version__ = '0.46.1'
3232

3333
__all__ = [
3434
# Modules:

extract_msg/properties/prop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _parseType(self, _type : int, stream : bytes, raw : bytes) -> Any:
107107
logger.warning('Property type is PtypNull, but is not equal to 0.')
108108
value = None
109109
elif _type == 0x0002: # PtypInteger16
110-
value = constants.st.ST_LE_I16.unpack(value[:3])[0]
110+
value = constants.st.ST_LE_I16.unpack(value[:2])[0]
111111
elif _type == 0x0003: # PtypInteger32
112112
value = constants.st.ST_LE_I32.unpack(value[:4])[0]
113113
elif _type == 0x0004: # PtypFloating32

0 commit comments

Comments
 (0)