Skip to main content

functions and classes to work with email

Project description

  • Maildir: a much faster subclass of mailbox.Maildir, because you really can trust the output of os.listdir to scan for changes

  • Message(msgfile, headersonly=False): factory function to accept a file or filename and return an email.message.Message

  • ismaildir(path): test if path refers to a Maildir

  • ismbox(path): test if path refers to an mbox file

  • ismhdir(path): test if path refers to an MH mail folder

  • make_maildir(path): create a new Maildir

  • message_addresses(M, header_names): generator that yields (realname, address) pairs from all the named headers

  • modify_header(M, hdr, new_value, always=False): modify a Message M to change the value of the named header hdr to the new value new_value

  • shortpath(path, environ=None): use cs.lex.shortpath to return a short refernce to a mail folder using $MAILDIR for “+” and $HOME for “~”

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

cs.mailutils-20150116.2.tar.gz (5.2 kB view hashes)

Uploaded Source

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