Include dependencies by requirements.txt (#10)

This commit is contained in:
Rodrigo Salvador
2019-09-16 20:49:04 -03:00
committed by Joshua Tauberer
parent 73fac36c80
commit d4a5944aba
5 changed files with 39 additions and 327 deletions
+9 -5
View File
@@ -6,12 +6,9 @@ reading Microsoft Outlook .msg files and converting
them to .eml format, which is the standard MIME
format for email messages.
The module requires Python 3.6 and the [compoundfiles](https://pypi.python.org/pypi/compoundfiles)
package, so first install that:
Install the dependencies with:
pip3.6 install compoundfiles
We also rely on our Python 3 port of [compressed_rtf](https://github.com/delimitry/compressed_rtf), which is included in this repository.
pip3.6 install -r requirements.txt
Then either convert a single file by piping:
@@ -23,3 +20,10 @@ Or convert a set of files:
When passing filenames as command-line arguments, a new file with `.eml`
appended to the filename is written out with the message in MIME format.
To use it in your application
import outlookmsgfile
eml = outlookmsgfile.load('my_email_sample.msg')
The ``load()`` function returns an [EmailMessage](https://docs.python.org/3/library/email.message.html#email.message.EmailMessage) instance.