[PATCH] mail/emailsubmission: fix Envelope.MailFrom JSON property
Export this patch
The JMAP RFC specifies this property with uppercase "F". Having it
lowercase here caused the server to fail to detect it and return an
error when trying to send an email with explicitly provided envelope.
Signed-off-by: Karel Balej <balejk@matfyz.cz>
Thanks! Applied and released a new tag with this (v0.4.5).
---
mail/emailsubmission/emailsubmission.go | 2 + -
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mail/emailsubmission/emailsubmission.go b/mail/emailsubmission/emailsubmission.go
index e679c79..9ca202d 100644
--- a/mail/emailsubmission/emailsubmission.go
+++ b/mail/emailsubmission/emailsubmission.go
@@ -71,7 +71,7 @@ func (s *EmailSubmission) MarshalJSON() ([]byte, error) {
type Envelope struct {
// The email address to use as the return address in the SMTP submission
- MailFrom *Address `json:"mailfrom,omitempty"`
+ MailFrom *Address `json:"mailFrom,omitempty"`
// The email address to send the message to
RcptTo []*Address `json:"rcptTo,omitempty"`
--
2.43.0