From 6371d5136f871dd585488e65d1bcc87bfc105f84 Mon Sep 17 00:00:00 2001 From: Harry Culpan Date: Tue, 30 Jun 2026 16:56:13 -0400 Subject: [PATCH] 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 --- pkg/email/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/email/config.go b/pkg/email/config.go index 28ab912..a545528 100644 --- a/pkg/email/config.go +++ b/pkg/email/config.go @@ -42,8 +42,8 @@ func NewConfigFromEnv() (*Config, error) { return nil, fmt.Errorf("error loading .env file: %s", err) } - username = os.Getenv("USERNAME") - password = os.Getenv("PASSWORD") + username = os.Getenv("EMAIL_USERNAME") + password = os.Getenv("EMAIL_PASSWORD") fetchServer = os.Getenv("IMAP_SERVER") sendServer = os.Getenv("SMTP_SERVER")