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
Fixed CC compatible wildcard for email forwarding
lotk6f11a4ad74f3
diff --git a/core/api/mail_services/v1/mail_bcc.go b/core/api/mail_services/v1/mail_bcc.goindex 524394ea..8ef1bd16 100644--- a/core/api/mail_services/v1/mail_bcc.go+++ b/core/api/mail_services/v1/mail_bcc.go@@ -37,7 +37,7 @@ type AddBccReq struct {g.Meta `path:"/mail_bcc/add" method:"post" summary:"add mail bcc"`Type string `json:"type" v:"required|in:sender,recipient" dc:"bcc type: sender or recipient"`Address string `json:"address" v:"required" dc:"email address or domain"`- Goto string `json:"goto" v:"required" dc:"forward target address"`+ Goto string `json:"goto" v:"required|email" dc:"forward target address"`Domain string `json:"domain" dc:"domain"`Active int `json:"active" d:"1" dc:"status: 1-enabled, 0-disabled"`}@@ -51,7 +51,7 @@ type EditBccReq struct {ID int `json:"id" v:"required" dc:"record id"`Type string `json:"type" v:"in:sender,recipient" dc:"bcc typeype: sen or er or recipient"`Address string `json:"address" dc:"email address or domainddress or domain"`- Goto string `json:"goto" dc:"forward target addressd target address"`+ Goto string `json:"goto" v:"required|email" dc:"forward target addressd target address"`Domain string `json:"domain" dc:"domain"`Active int `json:"active" v:"required" d:"1" dc:"status: 1-enabled, 0-disabled"`}diff --git a/core/api/mail_services/v1/mail_forward.go b/core/api/mail_services/v1/mail_forward.goindex 916b0175..e8a54a50 100644--- a/core/api/mail_services/v1/mail_forward.go+++ b/core/api/mail_services/v1/mail_forward.go@@ -32,8 +32,8 @@ type GetMailForwardListRes struct {type AddMailForwardReq struct {g.Meta `path:"/mail_forward/add" method:"post" summary:"add mail forward"`- Address string `json:"address" v:"required|email" desc:"forwarded email address, e.g. [email protected]"`- Goto string `json:"goto" v:"required" desc:"forward target address, multiple addresses separated by newline"`+ Address string `json:"address" v:"required" desc:"forwarded email address, e.g. [email protected]"`+ Goto string `json:"goto" v:"required|email" desc:"forward target address, multiple addresses separated by newline"`Active int `json:"active" v:"in:0,1" desc:"status: 1-enabled, 0-disabled" default:"1"`}@@ -44,7 +44,7 @@ type AddMailForwardRes struct {type EditMailForwardReq struct {g.Meta `path:"/mail_forward/edit" method:"post" summary:"edit mail forward"`Address string `json:"address" v:"required" desc:"forwarded email address"`- Goto string `json:"goto" desc:"forward target address, multiple addresses separated by newline. not set means only modify status"`+ Goto string `json:"goto" v:"email" desc:"forward target address, multiple addresses separated by newline. not set means only modify status"`Active int `json:"active" v:"in:0,1" desc:"status: 1-enabled, 0-disabled"`}