skip to navigation
skip to content

pymmails py3.3-v0.1.612

A module to download emails from an IMAP4 server

Latest Version: 0.2.99



The module was started to grab emails using IMAP and to store them on a local disk. I now use it to download to material sent by my students before an oral presentation. I receive many of them and it is usually annoying to download them one by one. Here is the code I use:

from pyquickhelper import fLOG
from pymmails import MailBoxImap
user = ""
pwd = "passsword"
server = "imap.your_provider.ext"
box = MailBoxImap(user, pwd, server)

A parameter pattern can be added to look for a subset of emails:

            pattern='FROM "xavier"')

Below, some examples of patterns:

pattern='FROM "xavier" SINCE 1-Feb-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013 UNANSWERED'
pattern='CC "jacques" FROM "xavier" DELETED'
pattern='TEXT "github"'
pattern='LARGER 10000 SMALLER 1000000'
pattern='SUBJECT "programmation"'
pattern='TO "student" FLAGGED'


This project contains various helper about logging functions, unit tests and help generation.
  • a source folder: src
  • a unit test folder: _unittests, go to this folder and run
  • a _doc folder: _doc, it will contains the documentation
  • a file to build and to install the module
  • a file to build the sphinx documentation
File Type Py Version Uploaded on Size (md5) Source 2014-02-02 15KB
  • Downloads (All Versions):
  • 80 downloads in the last day
  • 451 downloads in the last week
  • 1673 downloads in the last month