Newlines in smtp password file are now ignored
This commit is contained in:
parent
f92a08d073
commit
4271a77bd0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue