aero-mail/.gitignore
vodyanoysh b7777b9dcb fix: security hardening, stability & bug fixes
Security:
- Add .env to .gitignore, update .env.example template
- Remove global rejectUnauthorized:false — now per-account opt-in via smtpAllowSelfSigned
- Warn in logs and UI when safeStorage/keychain is unavailable
- Add app:isEncryptionAvailable IPC for renderer to surface keychain warning
- Mask SMTP username from console.log

Stability:
- Wrap all JSON.parse calls in try-catch (account-manager, credential-store)
- Fix silent .catch(()=>{}) on pollNewMessages — log warnings instead
- Add 10s connect() timeout to all providers (IMAP, Gmail, Exchange)
- Fix race condition in withAutoReconnect: properly surface reconnect errors

Bug fixes & quality:
- Fix newArrivals overwrite bug: collect all new messages, not just last one
- Add LRU eviction to bodyCache (max 100 entries) to prevent memory leak

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 20:45:27 +07:00

6 lines
46 B
Text

node_modules/
out/
dist/
*.log
.DS_Store
.env