Extract actionable tasks from emails using Python
Project description
mail2task
Extract actionable tasks from messy emails using Python.
Features
- Extract task-like sentences
- Detect due dates
- Detect priority levels
- Clean JSON output
- CLI support
Installation
pip install mail2task
Usage
Python
from mail2task import extract_tasks
email = """
Please submit the compliance report by Friday.
Schedule the onboarding meeting tomorrow.
"""
tasks = extract_tasks(email)
print(tasks)
CLI
Create a text file:
Please submit the report by Friday.
Schedule the client call tomorrow.
Run:
mail2task sample_email.txt
Output:
[
{
"title": "submit the report by Friday.",
"due_date": "2026-05-29T00:00:00",
"priority": "normal"
}
]
Example Use Cases
- Email automation
- Productivity apps
- AI assistants
- CRM workflows
- Task management systems
Project Structure
mail2task/
├── src/
├── tests/
├── README.md
├── pyproject.toml
License
MIT License
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
mail2task-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mail2task-0.1.0.tar.gz.
File metadata
- Download URL: mail2task-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95001dd8295286ce76b58c2e6b224bffa1f11ef9029a881a72ab4fd83e4ca6aa
|
|
| MD5 |
20e2cee37c56d8d59fd9c00222a1355b
|
|
| BLAKE2b-256 |
6b3b28a41b54ee5ef43a3dac735395877aa1ba8d921866ff0b02a6f971028cfc
|
File details
Details for the file mail2task-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mail2task-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5b82be9fbef2bfe291ad498406908550e4a130961118e9e7bd93809ab8415f1
|
|
| MD5 |
3664899341e10a0b842f5c32b9060564
|
|
| BLAKE2b-256 |
fe878320fd681ec2fdf6ce28671e36a755cbb2022501b51b614bb04a5a01a00d
|