Skip to main content

Simple library for retrieving and repackaging email messages.

Project description

pragmail python

pragmail is a library for retrieving email messages for other useful software applications.

It extends Python's built-in modules for internet protocols and support, maintaining the same degree of user flexibility.

Example usage:

>>> import pragmail
>>> client = pragmail.Client("")
>>> client.login("username", "password")
('OK', [b'username authenticated (Success)'])
('OK', [b'1357'])
>>>, 'FROM', '"John Smith"')
('OK', [b'245 248 257 259'])
>>> client.imap4.close()
('OK', [b'Returned to authenticated state. (Success)'])
>>> client.imap4.logout()
('BYE', [b'LOGOUT Requested'])

pragmail also equips you with several utility functions and a few useful methods for managing retrieved email messages. Please refer to the documentation for details.


pragmail can be installed with pip:

$ python -m pip install pragmail

You can get the latest source code from GitHub:

$ git clone git://
$ cd pragmail/
$ poetry install


Usage and reference documentation is found here.


Check the contributing guide to learn more about the development process and how you can test your changes.

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

pragmail-0.2.5.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

pragmail-0.2.5-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

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