We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

Mail and News Message Processing

“To be removed from our list of future commercial postings by [SOME] PUBLISHING COMPANY an Annual Charge of Ninety Five dollars is required. Just send $95.00 with your Name, Address and Name of the Newsgroup to be removed from our list”

newsgroup spammer, July 1996

Overview

Python comes with a rich set of modules for processing mail and news messages, as well as some common mail archive (mailbox) formats.

Contents

The rfc822 module

The mimetools module

The MimeWriter module

The mailbox module

The mailcap module

The mimetypes module

The packmail module

The mimify module

The multifile module