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:
parent
713a96501d
commit
6371d5136f
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue