Evidence-Driven AI-Powered Email Investigation Platform
MailIntel AI is an enterprise-style email investigation platform designed to analyze RFC822 (.eml) email messages and generate explainable, evidence-driven investigation reports.
The platform combines rule-based analysis, structured evidence collection, explainable risk scoring, and executive reporting into a workflow suitable for cybersecurity investigations, phishing analysis, compliance, and digital forensics.
- Email parsing (RFC822 /
.eml) - Authentication analysis (SPF, DKIM, DMARC)
- URL and domain intelligence
- Language intelligence
- Evidence collection engine
- Explainable risk scoring
- Executive PDF report generation
- JSON investigation reports
- Interactive Streamlit dashboard
- Docker support
- GitHub Actions CI
- Comprehensive automated tests
| Category | Technology |
|---|---|
| Language | Python 3.12+ |
| UI | Streamlit |
| Validation | Pydantic |
| Reports | ReportLab |
| Testing | Pytest |
| Linting | Ruff |
| Type Checking | MyPy |
| Containerization | Docker |
| CI/CD | GitHub Actions |
GitHub Repository:
https://github.com/Litap-AI/mailintel-ai
git clone https://github.com/Litap-AI/mailintel-ai.git
cd mailintel-aipython -m venv .venvsource .venv/bin/activate.venv\Scripts\activatepip install -e ".[dev]"python -m streamlit run src/mailintel/ui/app.pyOpen:
http://localhost:8501
Build the application:
docker compose buildRun the application:
docker compose upOpen:
http://localhost:8501
Stop the application:
docker compose downRun the complete quality suite:
pre-commit run --all-filesRun unit tests:
pytestRun static type checking:
mypy srcRun Ruff:
ruff check .
ruff format . --checkEvery push and pull request automatically executes:
- Ruff
- Ruff Format
- MyPy
- Pytest
The GitHub Actions workflow ensures all quality checks pass before changes are merged.
mailintel-ai/
├── src/
│ └── mailintel/
│
├── tests/
│
├── docs/
│
├── samples/
│
├── Dockerfile
├── docker-compose.yml
├── pyproject.toml
├── requirements.txt
└── README.md
| Module | Responsibility |
|---|---|
| Email Parser | Parses RFC822 email files |
| Authentication Engine | SPF / DKIM / DMARC analysis |
| Language Intelligence | Suspicious language detection |
| URL Intelligence | URL and domain inspection |
| Evidence Engine | Structured evidence collection |
| Findings Engine | Rule-based findings |
| Risk Engine | Explainable risk calculation |
| Report Builder | JSON investigation report |
| PDF Generator | Executive investigation report |
| Streamlit UI | Interactive investigation dashboard |
MailIntel AI generates:
-
Executive PDF investigation report
-
JSON investigation report
-
Evidence collection
-
Risk profile
-
Explainable recommendations
-
Investigation metadata
Input
rawplaintext.eml
Output
- Executive PDF Report
- JSON Investigation Report
- Risk Score
- Evidence Collection
- Recommendations
- RFC822 Email Parsing
- Authentication Analysis
- URL Intelligence
- Language Intelligence
- Evidence Collection
- Explainable Risk Engine
- Executive PDF Reports
- Docker Support
- GitHub Actions
- Streamlit Dashboard
- Batch Email Analysis
- HTML Reports
- DOCX Reports
- ZIP Upload Support
- FastAPI Backend
- React Frontend
- PostgreSQL
- User Authentication
- Investigation Case Management
- Threat Intelligence Integration
Contributions are welcome.
Please read:
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md
before submitting pull requests.
This project is released under the MIT License.
See the LICENSE file for details.
Rohit Patil
GitHub
MailIntel AI was developed as a portfolio project demonstrating:
- AI-assisted email investigation
- Explainable risk assessment
- Enterprise software engineering
- Clean Architecture
- Dockerized deployment
- Continuous Integration
- Automated testing



