Skip to content

Commit

Permalink
autoconfig: fix spelling
Browse files Browse the repository at this point in the history
This commit fixes a critical bug found by the CI where import was
allegedly misspelled

Signed-off-by: Moritz Poldrack <[email protected]>
Acked-by: Robin Jarry <[email protected]>
  • Loading branch information
mpldr authored and rjarry committed Feb 19, 2025
1 parent 1f87e21 commit 932d9a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/autoconfig/autoconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func getFromAutoconfig(ctx context.Context, localpart, domain string, result cha
// no imap server found
continue
}
var inport int
if inport, err = strconv.Atoi(incoming.Port); err != nil {
var incomingPort int
if incomingPort, err = strconv.Atoi(incoming.Port); err != nil {
continue
}
inenc := EncryptionSTARTTLS
Expand Down Expand Up @@ -106,7 +106,7 @@ func getFromAutoconfig(ctx context.Context, localpart, domain string, result cha
IMAP: Credentials{
Encryption: inenc,
Address: incoming.Hostname,
Port: inport,
Port: incomingPort,
Username: incoming.Username,
},
SMTP: Credentials{
Expand Down
6 changes: 3 additions & 3 deletions lib/autoconfig/mozilla.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func getFromMozilla(
// no imap server found
return
}
var inport int
if inport, err = strconv.Atoi(incoming.Port); err != nil {
var incomingPort int
if incomingPort, err = strconv.Atoi(incoming.Port); err != nil {
return
}
inenc := EncryptionSTARTTLS
Expand Down Expand Up @@ -95,7 +95,7 @@ func getFromMozilla(
IMAP: Credentials{
Encryption: inenc,
Address: incoming.Hostname,
Port: inport,
Port: incomingPort,
Username: incoming.Username,
},
SMTP: Credentials{
Expand Down

0 comments on commit 932d9a4

Please sign in to comment.