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>
4 lines
214 B
Text
4 lines
214 B
Text
# Google OAuth credentials for Gmail provider
|
|
# Create your own at https://console.cloud.google.com/apis/credentials
|
|
GMAIL_CLIENT_ID=your-client-id.apps.googleusercontent.com
|
|
GMAIL_CLIENT_SECRET=your-client-secret
|