1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-23 15:37:01 +00:00

Fix minor typos found by codespell

This patch fixes some minor typos in comments and strings found by
codespell.

While at it, also expand some variable names that were not typos, but
caused false positives, and end up being more readable anyway.
This commit is contained in:
Alberto Bertogli
2025-03-24 10:39:40 +00:00
parent 5305adb1b9
commit 8e4d31c74c
4 changed files with 10 additions and 9 deletions

View File

@@ -280,21 +280,21 @@ func loadCert(name, dir string, s *smtpsrv.Server) {
func loadDomain(name, dir string, s *smtpsrv.Server) {
s.AddDomain(name)
nu, err := s.AddUserDB(name, dir+"/users")
nusers, err := s.AddUserDB(name, dir+"/users")
if err != nil {
// If there is an error loading users, fail hard to make sure this is
// noticed and fixed as soon as it happens.
log.Fatalf(" %s: users file error: %v", name, err)
}
na, err := s.AddAliasesFile(name, dir+"/aliases")
naliases, err := s.AddAliasesFile(name, dir+"/aliases")
if err != nil {
// If there's an error loading aliases, fail hard to make sure this is
// noticed and fixed as soon as it happens.
log.Fatalf(" %s: aliases file error: %v", name, err)
}
nd, err := loadDKIM(name, dir, s)
ndkim, err := loadDKIM(name, dir, s)
if err != nil {
// DKIM errors are fatal because if the user set DKIM up, then we
// don't want it to be failing silently, as that could cause
@@ -302,7 +302,8 @@ func loadDomain(name, dir string, s *smtpsrv.Server) {
log.Fatalf(" %s: DKIM loading error: %v", name, err)
}
log.Infof(" %s (%d users, %d aliases, %d DKIM keys)", name, nu, na, nd)
log.Infof(" %s (%d users, %d aliases, %d DKIM keys)",
name, nusers, naliases, ndkim)
}
func loadDovecot(s *smtpsrv.Server, userdb, client string) {