Include dependencies by requirements.txt (#10)
This commit is contained in:
committed by
Joshua Tauberer
parent
73fac36c80
commit
d4a5944aba
@@ -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.
|
||||
Reference in New Issue
Block a user