Skip to main content

A Python package for retrieving, parsing, and sending emails

Project description

mailsuite

PyPI PyPI - Downloads

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 and DKIM-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

Working with .msg files

If you would like to be able to parse Microsoft Outlook .msg emails, you'll need to install the Email::Outlook::Message Perl module, which includes the msgconvert utility that is used to convert .msg files into the standard RFC 822 format. Ubuntu and Debian make this easy because they have a package for it, libemail-outlook-message-perl. On Fedora/RHEL/CentOS based distributions and macOS, you'll need to install Perlbrew.

Perlbrew installs a local copy of Perl within the user's home directory, similar to how Homebrew works (which is why the initial installation can take a while). That way, you don't need to use sudo to install Perl modules, and risk breaking your system's Perl installation in the process.

Once Perlbrew is installed, use cpan to install Email::Outlook::Message.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailsuite-1.9.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

mailsuite-1.9.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file mailsuite-1.9.0.tar.gz.

File metadata

  • Download URL: mailsuite-1.9.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for mailsuite-1.9.0.tar.gz
Algorithm Hash digest
SHA256 a60e1221be44d81fa10a4da481724d82863e9c2006c43b5b83f930f182509e7a
MD5 8843bb7892713f29d8a1bb5a99a32aa3
BLAKE2b-256 91b449ef9f7be7407c808dec8dd70fbfa70d772e3e88b7d7310e24ab20a50a9e

See more details on using hashes here.

File details

Details for the file mailsuite-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: mailsuite-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for mailsuite-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a414912a7bf13e0fa423d6002998b429902523b012eae97b32692d66c47f760
MD5 70dc5604126e9dd6368226c16f51228f
BLAKE2b-256 04c9ad1be450cd55653374d4b9fed615727995b0c0206bb8afdab4d5a64ed1d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page