Rename USERNAME/PASSWORD env vars to EMAIL_USERNAME/EMAIL_PASSWORD

Avoids collision with standard Linux shell variables that would cause
silent authentication failures against the IMAP server.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Harry Culpan 2026-06-30 16:56:13 -04:00
parent 713a96501d
commit 6371d5136f

View file

@ -42,8 +42,8 @@ func NewConfigFromEnv() (*Config, error) {
return nil, fmt.Errorf("error loading .env file: %s", err) return nil, fmt.Errorf("error loading .env file: %s", err)
} }
username = os.Getenv("USERNAME") username = os.Getenv("EMAIL_USERNAME")
password = os.Getenv("PASSWORD") password = os.Getenv("EMAIL_PASSWORD")
fetchServer = os.Getenv("IMAP_SERVER") fetchServer = os.Getenv("IMAP_SERVER")
sendServer = os.Getenv("SMTP_SERVER") sendServer = os.Getenv("SMTP_SERVER")