Skip to content

Commit 8461f10

Browse files
Merge pull request #390 from TeamMsgExtractor/next-release
Version 0.46.0
2 parents 25db76d + 7debebf commit 8461f10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3624
-1123
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Mac
22
.DS_Store
33

4-
# PyCharm crud
4+
# PyCharm stuff
55
/extract_msg/.idea
66

7-
# build files and folders
7+
# VS Code stuff.
8+
/.vscode/
9+
10+
# Build files and folders
811
/build/
912
*.egg-info/
1013
/dist/

CHANGELOG.md

Lines changed: 68 additions & 14 deletions
Large diffs are not rendered by default.

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.45.0-blue.svg
263-
:target: https://pypi.org/project/extract-msg/0.45.0/
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/
264264

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

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
sys.path.insert(0, os.path.abspath('..'))
1313

1414
__author__ = 'Destiny Peterson & Matthew Walker'
15-
__version__ = '0.45.0'
15+
__version__ = '0.46.0'
1616
__year__ = '2023'
1717

1818

docs/extract_msg.attachments.custom_att_handler.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ extract\_msg.attachments.custom\_att\_handler.custom\_handler.py module
1212
:undoc-members:
1313
:show-inheritance:
1414

15+
extract\_msg.attachments.custom\_att\_handler.lnk\_obj\_att.py module
16+
---------------------------------------------------------------------
17+
18+
.. automodule:: extract_msg.attachments.custom_att_handler.lnk_obj_att.py
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
1523
extract\_msg.attachments.custom\_att\_handler.outlook\_image\_dib.py module
1624
---------------------------------------------------------------------------
1725

docs/extract_msg.msg_classes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ extract\_msg.msg\_classes.contact.py module
3636
:undoc-members:
3737
:show-inheritance:
3838

39+
extract\_msg.msg\_classes.journal.py module
40+
-------------------------------------------
41+
42+
.. automodule:: extract_msg.msg_classes.journal.py
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
3947
extract\_msg.msg\_classes.meeting\_cancellation.py module
4048
---------------------------------------------------------
4149

docs/extract_msg.structures.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,38 @@ extract\_msg.structures.business\_card.py module
1212
:undoc-members:
1313
:show-inheritance:
1414

15+
extract\_msg.structures.cfoas.py module
16+
---------------------------------------
17+
18+
.. automodule:: extract_msg.structures.cfoas.py
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
extract\_msg.structures.contact\_link\_entry.py module
24+
------------------------------------------------------
25+
26+
.. automodule:: extract_msg.structures.contact_link_entry.py
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
extract\_msg.structures.dev\_mode\_a.py module
32+
----------------------------------------------
33+
34+
.. automodule:: extract_msg.structures.dev_mode_a.py
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
extract\_msg.structures.dv\_target\_device.py module
40+
----------------------------------------------------
41+
42+
.. automodule:: extract_msg.structures.dv_target_device.py
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
1547
extract\_msg.structures.entry\_id.py module
1648
-------------------------------------------
1749

@@ -28,6 +60,38 @@ extract\_msg.structures.misc\_id.py module
2860
:undoc-members:
2961
:show-inheritance:
3062

63+
extract\_msg.structures.mon\_stream.py module
64+
---------------------------------------------
65+
66+
.. automodule:: extract_msg.structures.mon_stream.py
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
71+
extract\_msg.structures.odt.py module
72+
-------------------------------------
73+
74+
.. automodule:: extract_msg.structures.odt.py
75+
:members:
76+
:undoc-members:
77+
:show-inheritance:
78+
79+
extract\_msg.structures.ole\_pres.py module
80+
-------------------------------------------
81+
82+
.. automodule:: extract_msg.structures.ole_pres.py
83+
:members:
84+
:undoc-members:
85+
:show-inheritance:
86+
87+
extract\_msg.structures.ole\_stream\_struct.py module
88+
-----------------------------------------------------
89+
90+
.. automodule:: extract_msg.structures.ole_stream_struct.py
91+
:members:
92+
:undoc-members:
93+
:show-inheritance:
94+
3195
extract\_msg.structures.recurrence\_pattern.py module
3296
-----------------------------------------------------
3397

@@ -68,6 +132,14 @@ extract\_msg.structures.time\_zone\_struct.py module
68132
:undoc-members:
69133
:show-inheritance:
70134

135+
extract\_msg.structures.toc\_entry.py module
136+
--------------------------------------------
137+
138+
.. automodule:: extract_msg.structures.toc_entry.py
139+
:members:
140+
:undoc-members:
141+
:show-inheritance:
142+
71143
extract\_msg.structures.tz\_rule.py module
72144
------------------------------------------
73145

extract_msg/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# --- LICENSE.txt --------------------------------------------------------------
1313
#
14-
# Copyright 2013-2022 Matthew Walker and Destiny Peterson
14+
# Copyright 2013-2023 Matthew Walker and Destiny Peterson
1515
#
1616
# This program is free software: you can redistribute it and/or modify
1717
# it under the terms of the GNU General Public License as published by
@@ -27,16 +27,18 @@
2727
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2828

2929
__author__ = 'Destiny Peterson & Matthew Walker'
30-
__date__ = '2023-08-12'
31-
__version__ = '0.45.0'
30+
__date__ = '2023-11-08'
31+
__version__ = '0.46.0'
3232

3333
__all__ = [
3434
# Modules:
3535
'attachments',
36+
'constants',
3637
'enums',
3738
'exceptions',
3839
'msg_classes',
3940
'properties',
41+
'structures',
4042

4143
# Classes:
4244
'Attachment',
@@ -59,7 +61,7 @@
5961
# Ensure these are imported before anything else.
6062
from . import constants, enums, exceptions
6163

62-
from . import attachments, msg_classes, properties
64+
from . import attachments, msg_classes, properties, structures
6365
from .attachments import Attachment, AttachmentBase, SignedAttachment
6466
from .msg_classes import Message, MSGFile
6567
from .ole_writer import OleWriter

extract_msg/_rtf/inject_rtf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
from .token import Token, TokenType
88
from .tokenize_rtf import tokenizeRTF
99

10-
from typing import List, Iterable, Union
10+
from typing import List, Iterable, TypeVar, Union
1111

1212

13+
_T = TypeVar('_T')
14+
1315
# A tuple of destinations used in the header. All ignorable ones are skipped
1416
# anyways, so we don't need to list those here.
1517
_HEADER_DESTINATIONS = (
@@ -45,7 +47,7 @@
4547
)
4648

4749

48-
def _listInsertMult(dest : List, source : Iterable, index : int = -1):
50+
def _listInsertMult(dest : List[_T], source : Iterable[_T], index : int = -1):
4951
"""
5052
Inserts into :param dest: all the items in :param source: at the index
5153
specified. :param dest: can be any mutable sequence with :method insert:,

extract_msg/_rtf/tokenize_rtf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import io
77

8-
from typing import Optional, Tuple
8+
from typing import List, Optional, Tuple
99

1010
from .token import Token, TokenType
1111

@@ -182,7 +182,7 @@ def _readText(startChar : bytes, reader : io.BytesIO) -> Tuple[Tuple[Token, ...]
182182
return tuple(Token(x, TokenType.TEXT) for x in chars), nextChar
183183

184184

185-
def tokenizeRTF(data : bytes, validateStart : bool = True) -> None:
185+
def tokenizeRTF(data : bytes, validateStart : bool = True) -> List[Token]:
186186
"""
187187
Reads in the bytes and sets the tokens list to the contents after
188188
tokenizing. If tokenizing fails, the current tokens list will not be
@@ -215,7 +215,7 @@ def tokenizeRTF(data : bytes, validateStart : bool = True) -> None:
215215
nextChar = reader.read(1)
216216

217217
# If the next character is a space, ignore it.
218-
if nextChar == ' ':
218+
if nextChar == b' ':
219219
nextChar = reader.read(1)
220220
else:
221221
tokens = []

0 commit comments

Comments
 (0)