Commit Graph

9 Commits

Author SHA1 Message Date
huangzhenpc
663f99a510 Use host Redis (127.0.0.1:6379) with password, switch to host network mode
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:28:52 +08:00
huangzhenpc
e96b2e1b4a Add Redis caching, email refresh button, optimize page loading
- Add Redis service (docker-compose) for caching accounts, messages, payment status
- Cache accounts list (5min), messages (3min), payment status (10min)
- Auto-invalidate cache on import/delete/payment-check/note-update
- Add refresh button to email list panel (force re-fetch from IMAP)
- Messages API supports refresh=true param to bypass cache
- New cache.py module with RedisCache class

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:26:42 +08:00
huangzhenpc
197c969e41 Add payment status filter dropdown (paid/unpaid/refunded/suspended)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:20:37 +08:00
huangzhenpc
3c1715603d Fix port mapping: app listens on 5001, map 5000->5001
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:17:21 +08:00
huangzhenpc
d23aaa3143 Add login screen with password protection (oadmin123)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:10:43 +08:00
huangzhenpc
385099f3d0 Add email-validator dependency for Pydantic EmailStr
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 01:08:16 +08:00
huangzhenpc
889f4f15d5 Optimize database and deployment: fix SQL injection, async auth, persist data
- Move SQLite DB to data/ directory and track in git for portability
- Fix SQL injection in cleanup_old_emails (use parameterized query)
- Replace sync requests with async httpx in auth.py
- Enable WAL mode and foreign keys for SQLite
- Add UNIQUE constraint and foreign key to account_tags table
- Remove redundant indexes on primary key columns
- Mount data/ volume in docker-compose for persistence
- Remove unused requests dependency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 00:57:35 +08:00
huangzhenpc
5b01caf8e3 Add project files: Outlook mail manager with Docker support
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 00:45:44 +08:00
huangzhenpc
d964a8d758 first commit 2026-03-06 00:28:54 +08:00