Martijn van de Streek 5fa8976f86 Fix a crash when all 64 bits in timestamp are 1 (#22)
We've found some .msg files in the wild that have a CREATION_TIME that
has all 64 bits set: 9223372036854775807.

Adding this number of 100ns intervals to the base timestamp of
1601-01-01 results in a timestamp somewhere in the year 30828 which is
not supported by Python's datetime module, as datetime.MAXYEAR is
currently 9999.

Co-authored-by: Martijn van de Streek <martijn.vandestreek@exxellence.nl>
2022-02-10 11:41:08 -05:00
2018-03-14 16:24:47 -04:00
2018-11-12 11:10:02 -05:00
2020-10-22 10:39:37 -04:00

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.

S
Description
This project is to create Graphical user interface to view, convert and export .msg emails without using Outlook
Readme MIT 88 KiB
Languages
Python 100%