fix prefix; test attachments; add maxsize

This commit is contained in:
Aine
2022-08-22 20:21:22 +03:00
parent d5cf9a84f5
commit 564cd82c6b
7 changed files with 15 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ func main() {
defer recovery()
go startBot()
if err := smtp.Start(cfg.Domain, cfg.Port, cfg.LogLevel, mxb); err != nil {
if err := smtp.Start(cfg.Domain, cfg.Port, cfg.LogLevel, cfg.MaxSize, mxb); err != nil {
//nolint:gocritic
log.Fatal("SMTP server crashed: %v", err)
}