Merge pull request #3680 from giorgiga/trimsmtppasswordfilecontents

Newlines in smtp password file are now ignored
This commit is contained in:
Simon Pasquier 2024-01-23 15:25:10 +01:00 committed by GitHub
commit 7a3c189315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ func (n *Email) getPassword() (string, error) {
if err != nil {
return "", fmt.Errorf("could not read %s: %w", n.conf.AuthPasswordFile, err)
}
return string(content), nil
return strings.TrimSpace(string(content)), nil
}
return string(n.conf.AuthPassword), nil
}