Make replyToAddress optional

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-16 16:03:02 -05:00
parent 85a88256b9
commit 7bdffef346
5 changed files with 13 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ type SMTPConfig struct {
Host string `json:"host"`
User *string `json:"user,omitempty"`
Password *Password `json:"password,omitempty"`
ReplyToAddress string `json:"replyToAddress"`
ReplyToAddress *string `json:"replyToAddress,omitempty"`
}
type DomainSettings struct {

View File

@@ -668,6 +668,11 @@ func (in *SMTPConfig) DeepCopyInto(out *SMTPConfig) {
*out = new(Password)
(*in).DeepCopyInto(*out)
}
if in.ReplyToAddress != nil {
in, out := &in.ReplyToAddress, &out.ReplyToAddress
*out = new(string)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SMTPConfig.