Skip to content

Commit 20f2f76

Browse files
Cleanup for release
1 parent 33341bf commit 20f2f76

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**v0.48.2**
2-
* Fixed bugs with `MessageBase.asEmailMessage()`.
2+
* Fixed bugs with `MessageBase.asEmailMessage()`. Numerous improvements to how it handles the data.
33

44
**v0.48.1**
55
* Added an option (`-s`, `--stdin`) to the command line to take an MSG file from stdin. This allows the user to pipe the MSG data from another program directly instead of having to write a middleman that uses the `extract-msg` library directly or having to write the file to the disk first.

extract_msg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2828

2929
__author__ = 'Destiny Peterson & Matthew Walker'
30-
__date__ = '2024-03-08'
30+
__date__ = '2024-03-09'
3131
__version__ = '0.48.2'
3232

3333
__all__ = [

extract_msg/msg_classes/message_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ def asEmailMessage(self) -> EmailMessage:
205205
cid = att.contentId)
206206
# This is just a very basic check.
207207
attachment['Content-Disposition'] = f'{"inline" if att.hidden else "attachment"}; filename="{att.getFilename()}"'
208+
209+
# Add the attachment.
208210
msgMain.attach(attachment)
209211

210212
return ret

0 commit comments

Comments
 (0)