Skip to content

Simple library for retrieving and repackaging email messages.

License

Notifications You must be signed in to change notification settings

huenique/pragmail

Repository files navigation

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("imap.domain.com")
>>> client.login("username", "password")
('OK', [b'username authenticated (Success)'])
>>> client.select("INBOX")
('OK', [b'1357'])
>>> client.imap4.search(None, '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.

Installing

pragmail can be installed with pip:

$ python -m pip install pragmail

You can get the latest source code from GitHub:

$ git clone git://github.com/huenique/pragmail.git
$ cd pragmail/
$ poetry install

Documentation

Usage and reference documentation is found here.

Contributing

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

About

Simple library for retrieving and repackaging email messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published