Files
metabuilder/services
johndoe6345789 a72bf02911 feat(services): create Python email service (IMAP/SMTP)
- Create Flask app with CORS and health check endpoint
- Implement account management: create, list, get, delete
- Implement sync control: trigger IMAP sync, check status, cancel
- Implement compose: send emails, manage drafts
- Add IMAPClient wrapper with incremental sync and UID tracking
- Add SMTP sender with attachment support (images, audio, docs)
- Add Dockerfile with multi-stage build for production
- Add .env.example and comprehensive README with API documentation

Includes:
- Multi-tenant safety with tenantId/userId filtering
- Encrypted credential handling via DBAL
- Celery-ready async task structure
- Full email parsing: headers, recipients, body (text/HTML)
- Folder type inference from IMAP flags
- Attachment parsing and handling
- Base64 encode/decode for attachment data

Task 7.1: Email Service Backend Implementation
2026-01-23 19:35:10 +00:00
..