Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Adjust the Create Contact Group api2

lotk8cb3e38833c8
diff --git a/core/internal/service/mail_boxes/mail_boxes.go b/core/internal/service/mail_boxes/mail_boxes.go
index b327f1d7..ee69fba8 100644
--- a/core/internal/service/mail_boxes/mail_boxes.go
+++ b/core/internal/service/mail_boxes/mail_boxes.go
@@ -11,7 +11,6 @@ import (
"github.com/gogf/gf/v2/frame/g"
"math/rand"
"regexp"
- "strconv"
"time"
)
@@ -205,7 +204,7 @@ func BatchAdd(ctx context.Context, domain, password string, quota int, count int
randomChars[j] = byte(rand.Intn(26) + 97) // a-z的ASCII码
}
- localPart := fmt.Sprintf("%s%s%s%s", prefix, strconv.Itoa(i), string(randomChars))
+ localPart := fmt.Sprintf("%s%d%s", prefix, i, string(randomChars))
username := localPart + "@" + domain
mailbox := v1.Mailbox{