Py-mailsuite

Jul 20, 2023

Python package to simplify receiving, parsing, and sending email

A Python package to simplify receiving, parsing, and sending email Features

  • Receive emails via IMAP
    • 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/G-suite, Office 365, Exchange, Dovcot, and DavMail
  • Consistent email parsing
    • SHA256 hashes of attachments
  • Simplified email sending via SMTP
    • Uses opportunistic encryption STARTTLS by default
    • Easily add attachments, plain text, and HTML


Checkout these related ports:
  • Xpbiff -
  • Xmailwatcher - Mailbox checker which displays sender and subject lines of mails
  • Xmailbox - Mailbox checker with sound and animation for X Window System
  • Xmail - X-based interface to the Berkeley mail program
  • Xfce4-mailwatch-plugin - Mail notification applet for the Xfce panel
  • Xfaces - Display shaped icons for mail spool contents
  • Xcite - Exciting Cite for any Mail/News reading modes on Emacs
  • Xbuffy - Replacement for xbiff that handles multiple mail files
  • X-face-e21 - X-Face utilities for Emacs
  • Wmmaiload - Incoming mail monitor dockapp with a similar look to wmcpuload
  • Wmbiff -
  • Whoson - Implementation of `WHO iS ONline' protocol
  • Websieve - Web based Cyrus IMAP user admin client
  • Wanderlust - Mail and news system for Emacs
  • Vrfy - Verify mail address