This commit is contained in:
Blallo 2020-04-28 22:50:08 +02:00
parent 279500db50
commit dc71cfdef4
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -18,7 +18,7 @@ func readFromConsole() string {
for counter < 3 {
line, err = reader.ReadString('\n')
if line == "\n" {
counter += 1
counter++
} else {
counter = 0
}
@ -68,7 +68,7 @@ func main() {
var err error
var configPath, section, serverAddress, user, password, to, cc, bcc, from, subject, text string
var encryption, dbg, versionFlag bool
var serverPort_ int
var serverPortAux int
var serverPort int64
flag.BoolVar(&versionFlag, "version", false, "Prints the version and exits")
@ -76,7 +76,7 @@ func main() {
flag.StringVar(&section, "section", "default", "Section of the conf to read (defaults to \"default\")")
flag.BoolVar(&dbg, "dbg", false, "Enable debugging output")
flag.StringVar(&serverAddress, "server-address", "", "The SMTP server address")
flag.IntVar(&serverPort_, "server-port", 0, "The SMTP server")
flag.IntVar(&serverPortAux, "server-port", 0, "The SMTP server")
flag.BoolVar(&encryption, "force-ssl", false, "Force the use of ssl (defalut: false)")
flag.StringVar(&user, "user", "", "The user to authenticate with to the server")
flag.StringVar(&password, "password", "", "The password to authenticate with to the server")
@ -102,7 +102,7 @@ func main() {
}
}
serverPort = int64(serverPort_)
serverPort = int64(serverPortAux)
Debug.F(
`
---