Implement multi-folder synchronization

Add support for syncing multiple IMAP folders with auto-creation of missing
dest folders and configurable folder selection.

Changes:
- Update main.py to loop over folders, with auto-create for dest
- Add FOLDERS env var for all or specific folders
- Update .env.example and README for FOLDERS config
This commit is contained in:
Jeena 2026-01-04 16:27:54 +09:00
parent 2ecdf33dc4
commit 485a5db8b9
3 changed files with 107 additions and 49 deletions

View file

@ -6,7 +6,7 @@ DEST_HOST=yourserver.mxrouting.net
DEST_PORT=993
DEST_USER=your@mxroute.com
DEST_PASS=password
FOLDER=INBOX
FOLDERS=INBOX
DRY_RUN=false
UPTIME_SUCCESS_URL=https://your-uptime-instance.com/api/push/your-token?status=up&msg=OK&ping=
UPTIME_FAIL_URL=https://your-uptime-instance.com/api/push/your-token?status=down&msg=Failed