Skip to content

Commit 8fc4480

Browse files
Merge pull request #378 from TeamMsgExtractor/next-release
Fix bug with mimetype
2 parents 51746cc + 22a9e1e commit 8fc4480

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.42.2**
2+
* Fix bug in `AttachmentBase.mimetype` that would cause it to throw an error when accessed. This bug was introduced in `v0.42.0`.
3+
14
**v0.42.1**
25
* Fixed some constants being accessed with the wrong name (names were changed in reorganization).
36
* Removed unused regular expression.

README.rst

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

245-
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.42.1-blue.svg
246-
:target: https://pypi.org/project/extract-msg/0.42.1/
245+
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.42.2-blue.svg
246+
:target: https://pypi.org/project/extract-msg/0.42.2/
247247

248248
.. |PyPI2| image:: https://img.shields.io/badge/python-3.8+-brightgreen.svg
249249
: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-07-31'
31-
__version__ = '0.42.1'
30+
__date__ = '2023-08-02'
31+
__version__ = '0.42.2'
3232

3333
__all__ = [
3434
# Modules:

extract_msg/attachments/attachment_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def mimetype(self) -> Optional[str]:
506506
"""
507507
The content-type mime header of the attachment, if specified.
508508
"""
509-
return self._getStreamAs('__substg1.0_370E', partial(tryGetMimetype, self), False)
509+
return tryGetMimetype(self, self._getStringStream('__substg1.0_370E'))
510510

511511
@property
512512
def msg(self) -> MSGFile:

0 commit comments

Comments
 (0)