semvec/pypi-packages huggingface dataset:
mailpract 0.1.0
Simple library for retrieving and repackaging email messages.
License: MIT
Requires Python: >=3.9,<4.0

# mailpract

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

It's based on several of Python's standard libraries for internet protocols and support, allowing a certain degree of user flexibility and hence providing little abstraction and only adding useful functions and methods for convenience.

Example usage:
```python
>>> import mailpract
>>> client = mailpract.Client("imap.domain.com")
>>> client.imap4.login("username", "password")
('OK', [b'username authenticated (Success)'])
>>> client.imap4.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'])
```

# Installing

mailpract can be installed with pip:
```
$ python -m pip install mailpract
```

You can get latest source code from GitHub:
```
$ git clone git://github.com/huenique/mailpract.git
$ cd mailpract/
$ poetry install
```

# Documentation

Usage and reference documentation is found [here](https://github.com/huenique/mailpract/tree/main/docs).

# Contributing

Check the [contributing guide](https://github.com/huenique/mailpract/blob/main/.github/CONTRIBUTING.md) to learn more about the development process and how you can test your changes.