A Python package for retrieving, parsing, and sending emails
Project description
mailsuite
A Python package for retrieving, parsing, and sending emails.
Features
- Simplified IMAP client
- Retrieve email from any folder
- Create new folders
- Move messages to other folders
- Delete messages
- Monitor folders for new messages using the IMAP
IDLE
command - Always use
/
as the folder hierarchy separator, and convert to the server's hierarchy separator in the background - Always remove folder name characters that conflict with the server's hierarchy separators
- Prepend the namespace to the folder path when required
- Automatically reconnect when needed
- Work around quirks in Gmail, Microsoft 365, Exchange, Dovecot, and DavMail
- Consistent email parsing
- SHA256 hashes of attachments
- Parsed
Authentication-Results
andDKIM-Signature
headers - Can parse Microsoft Outlook
.msg
files
- Simplified email creation and sending
- Easily add attachments, plain text, and HTML
- Uses opportunistic encryption (
STARTTLS
) with SMTP by default
Email samples and Outlook clients
Microsoft Outlook for Windows
If you save an email to a file using Microsoft Outlook on Windows, it will
save the file in a proprietary Microsoft OLE format with a .msg
extension.
There are tools like msgconvert
that make an attempt to convert a .msg
file to a standard RFC 822 .eml
file, and mailsuite
will attempt to use
this tool when encountering a .msg
file if it is installed on the system.
However, anomalies are introduced during conversion that make the results
unsuitable for forensic analysis.
Instead of using msgconvert
, use one of these other Outlook clients.
Microsoft Outlook for macOS
Drag the email from the inbox or other folder and drop it on the desktop. Attached emails can be saved to a file like any other attachment.
Outlook Web Access (OWA)
- Create a new email and leave it open a separate window.
- Drag from the inbox or other folder and drop it in the message of the draft.
- Download the attachment that was created in step 2
Emails that are already attached to an email can be downloaded from OWA like any other attachment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mailsuite-1.9.1.tar.gz
.
File metadata
- Download URL: mailsuite-1.9.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61229299ecee0672ea8337af5876b50e51ac3c0bf934b89a2bdb6ead3982245f |
|
MD5 | 751ad703ae2e6c5b776918eff5c19f93 |
|
BLAKE2b-256 | 89358a0095786069e464ca8ecb3068b87ce5ab978cb6e2f291eb9cde58e3a22d |
File details
Details for the file mailsuite-1.9.1-py3-none-any.whl
.
File metadata
- Download URL: mailsuite-1.9.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b784d4e1a9fe165689ec27019346cc9b7634e23a33261cfbd1a985a7a50ac1ff |
|
MD5 | a0b54fdb5ca3b786395601ca77ac160f |
|
BLAKE2b-256 | e0c66b16f7ca5147e02c63d6a7fcb057558285c3e98f6142638c2f08f00f45a3 |