mailter is a Python project designed for adding tags in Gmail.
- Email connectivity and processing (
connect.py,gmail.py) - Configurable filtering with JSON and Python (
filter.json,filter.py) - Utility and validation helpers (
utils.py,validators.py) - Modular constants and functional definitions (
constants.py,function_def.py) - Data models for custom logic (
models.py) - Docker support (
Dockerfile,README.Docker.md) - Container orchestration (
compose.yaml)
- Python 3.x
- Docker (optional, for containerized setup)
git clone https://github.com/mit2u/mailter.git cd mailter pip install -r requirements.txt
-
Configuration:
- Review
filter.jsonfor filter setup. - Update constants as needed in
constants.py.
- Review
-
Run the Application:
docker build -t mailter . docker-compose up
connect.py— Email connection logicgmail.py— Gmail interactionfilter.py,filter.json— Email filteringfunction_def.py— Function definitionsmodels.py— Data modelsconstants.py— Constantsutils.py— Utility functionsvalidators.py— Validation functionsrequirements.txt— Pip dependenciesDockerfile— Docker setupcompose.yaml— Docker Compose config