Fetch mails from IMAP servers and deliver them to a local user
Project description
mettmail
Get mail from IMAP server with IDLE extension and deliver to LMTP server, nothing else.
Requirements
- python >=3.8
- poetry (
pip install --user poetry
)
Install
Install mettmail python package and CLI command.
poetry install --no-root
Run
Create configuration file based on the example:
cp mettmail.example.yaml mettmail.yaml
Edit it with your IMAP/LMTP connection details. You can override most of DeliverLMTP
and FetchIMAP
constructor parameters.
Run parameters:
poetry run mettmail --help
Development
Build Dependencies
Install dependencies and pre-commit hooks:
# you may need to install the following tools outside of your virtualenv, too:
pip install nox poetry pre-commit
poetry install --no-root
poetry run pre-commit install
Test/Coverage setup
Quickly
You can quickly run tests with:
# using your default interpreter
poetry run pytest
# using nox (add -r for the following runs)
nox -p 3.8
Thoroughly
Note: Python 3.10 support is currently broken because of a bug in aioimaplib
.
Use nox
to run tests and other useful things automatically for all supported python versions.
Initial setup for all interpreters and environments:
pyenv install 3.8.12
pyenv install 3.9.9
pyenv install 3.10.1
pyenv local 3.8.12 3.9.9 3.10.1
nox
After that it runs much more quickly reusing the created virtualenvs:
nox -r
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mettmail-0.1.1.tar.gz
.
File metadata
- Download URL: mettmail-0.1.1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/4.18.0-348.7.1.el8_5.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d45d8b7176177404ecd4bab5c4052e36090447ab88dd15d70a2aad1ed37836b |
|
MD5 | 411c1f9383a16a3d19f731eda4aabfd1 |
|
BLAKE2b-256 | cbd0502d7a611740a1129a6a520d6b9877eab2ac7654c56a6d3ed95e9821b0d7 |
File details
Details for the file mettmail-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mettmail-0.1.1-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/4.18.0-348.7.1.el8_5.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89ac3e1b6812bc33a78c03948034026079efb2ffde00f071be6ad85ef11c11a4 |
|
MD5 | 002247407e7ae9dd43d58d00a7f75a1e |
|
BLAKE2b-256 | 271c1d7ba3c0b44d90708405cec4b7ff5ba1e3288414951ad67dcff196419901 |