-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from TeamMsgExtractor/next-release
Version 0.30.0
- Loading branch information
Showing
24 changed files
with
612 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
install: | ||
- python setup.py install | ||
script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|License: GPL v3| |PyPI3| |PyPI1| |PyPI2| | ||
|License: GPL v3| |PyPI3| |PyPI2| | ||
|
||
msg-extractor | ||
============= | ||
|
@@ -10,10 +10,8 @@ data (from, to, cc, date, subject, body) and the email's attachments. | |
|
||
NOTICE | ||
====== | ||
0.29.* will be the last versions that will support Python 2. While we want to | ||
continue to support it, it would just be too much work to do so. We are | ||
providing notice ahead of time of this change so that you may sort out your | ||
Python environments ahead of time. | ||
0.29.* is the branch that supports both Python 2 and Python 3. It is now only | ||
receiving bug fixes and will not be receiving feature updates. | ||
|
||
This module has a Discord server for general discussion. You can find it here: | ||
`Discord`_ | ||
|
@@ -40,13 +38,13 @@ attachments. | |
The script uses Philippe Lagadec's Python module that reads Microsoft | ||
OLE2 files (also called Structured Storage, Compound File Binary Format | ||
or Compound Document File Format). This is the underlying format of | ||
Outlook's .msg files. This library currently supports up to Python 2.7 | ||
and 3.4. | ||
Outlook's .msg files. This library currently supports Python 3.6 and above. | ||
|
||
The script was built using Peter Fiskerstrand's documentation of the | ||
.msg format. Redemption's discussion of the different property types | ||
used within Extended MAPI was also useful. For future reference, I note | ||
that Microsoft have opened up their documentation of the file format. | ||
The script was originally built using Peter Fiskerstrand's documentation of the | ||
.msg format. Redemption's discussion of the different property types used within | ||
Extended MAPI was also useful. For future reference, I note that Microsoft have | ||
opened up their documentation of the file format, which is what is currently | ||
being used for development. | ||
|
||
|
||
#########REWRITE COMMAND LINE USAGE############# | ||
|
@@ -55,35 +53,48 @@ refer to the usage information provided from the program's help dialog: | |
:: | ||
|
||
usage: extract_msg [-h] [--use-content-id] [--dev] [--validate] [--json] | ||
[--file-logging] [--verbose] [--log LOG] | ||
[--config CONFIG_PATH] [--out OUT_PATH] [--use-filename] | ||
msg [msg ...] | ||
[--file-logging] [--verbose] [--log LOG] | ||
[--config CONFIG_PATH] [--out OUT_PATH] [--use-filename] | ||
[--dump-stdout] [--html] [--raw] [--rtf] | ||
[--allow-fallback] [--out-name OUT_NAME] msg [msg ...] | ||
|
||
extract_msg: Extracts emails and attachments saved in Microsoft Outlook's .msg | ||
files. https://github.com/mattgwwalker/msg-extractor | ||
extract_msg: Extracts emails and attachments saved in Microsoft Outlook's | ||
.msg files. https://github.com/TeamMsgExtractor/msg-extractor | ||
|
||
positional arguments: | ||
msg An msg file to be parsed | ||
msg An msg file to be parsed | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--use-content-id, --cid | ||
Save attachments by their Content ID, if they have | ||
one. Useful when working with the HTML body. | ||
--dev Changes to use developer mode. Automatically enables | ||
the --verbose flag. Takes precedence over the | ||
--validate flag. | ||
--validate Turns on file validation mode. Turns off regular file | ||
output. | ||
--json Changes to write output files as json. | ||
--file-logging Enables file logging. Implies --verbose | ||
--verbose Turns on console logging. | ||
--log LOG Set the path to write the file log to. | ||
--config CONFIG_PATH Set the path to load the logging config from. | ||
--out OUT_PATH Set the folder to use for the program output. | ||
(Default: Current directory) | ||
--use-filename Sets whether the name of each output is based on the | ||
msg filename. | ||
-h, --help show this help message and exit | ||
--use-content-id, --cid | ||
Save attachments by their Content ID, if they have | ||
one. Useful when working with the HTML body. | ||
--dev Changes to use developer mode. Automatically | ||
enables the --verbose flag. Takes precedence over | ||
the --validate flag. | ||
--validate Turns on file validation mode. Turns off regular | ||
file output. | ||
--json Changes to write output files as json. | ||
--file-logging Enables file logging. Implies --verbose. | ||
--verbose Turns on console logging. | ||
--log LOG Set the path to write the file log to. | ||
--config CONFIG_PATH Set the path to load the logging config from. | ||
--out OUT_PATH Set the folder to use for the program output. | ||
(Default: Current directory) | ||
--use-filename Sets whether the name of each output is based on | ||
the msg filename. | ||
--dump-stdout Tells the program to dump the message body (plain | ||
text) to stdout. Overrides saving arguments. | ||
--html Sets whether the output should be html. If this is | ||
not possible, will error. | ||
--raw Sets whether the output should be html. If this is | ||
not possible, will error. | ||
--rtf Sets whether the output should be rtf. If this is | ||
not possible, will error. | ||
--allow-fallback Tells the program to fallback to a different save | ||
type if the selected one is not possible. | ||
--out-name OUT_NAME Name to be used with saving the file output. | ||
Should come immediately after the file name. | ||
|
||
**To use this in your own script**, start by using: | ||
|
||
|
@@ -116,11 +127,8 @@ where ``CustomAttachmentClass`` is your custom class. | |
|
||
#TODO: Finish this section | ||
|
||
If you have any questions feel free to contact me, Matthew Walker, at | ||
mattgwwalker at gmail.com. NOTE: Due to time constraints, The Elemental | ||
of Destruction has been added as a contributor to help manage the project. | ||
As such, it may be helpful to send emails to [email protected] as | ||
well. | ||
If you have any questions feel free to contact me, Destiny, as arceusthe [at] | ||
gmail [dot] com. I am the co-owner and main developer of the project. | ||
|
||
If you have issues, it would be best to get help for them by opening a | ||
new github issue. | ||
|
@@ -197,11 +205,9 @@ And thank you to everyone who has opened an issue and helped us track down those | |
.. |License: GPL v3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg | ||
:target: LICENSE.txt | ||
|
||
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.29.0-blue.svg | ||
:target: https://pypi.org/project/extract-msg/0.29.0/ | ||
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.30.0-blue.svg | ||
:target: https://pypi.org/project/extract-msg/0.30.0/ | ||
|
||
.. |PyPI1| image:: https://img.shields.io/badge/python-2.7+-brightgreen.svg | ||
:target: https://www.python.org/downloads/release/python-2715/ | ||
.. |PyPI2| image:: https://img.shields.io/badge/python-3.6+-brightgreen.svg | ||
:target: https://www.python.org/downloads/release/python-367/ | ||
.. _Matthew Walker: https://github.com/mattgwwalker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.