Skip to content

Python library to convert Microsoft Outlook .msg files to .eml/MIME message files.

License

Notifications You must be signed in to change notification settings

bugdevil/convert-outlook-msg-file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert Outlook .msg Files to .eml (MIME format)

This repository contains a Python 3.6 module for reading Microsoft Outlook .msg files and converting them to .eml format, which is the standard MIME format for email messages.

Install the dependencies with:

pip3.6 install -r requirements.txt

Then either convert a single file by piping:

python3.6 outlookmsgfile.py < message.msg > message.eml

Or convert a set of files:

python3.6 outlookmsgfile.py *.msg

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 instance.

About

Python library to convert Microsoft Outlook .msg files to .eml/MIME message files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%