f446ceaac9734d1a22546a343c0f1af90fc5236a — Karel Balej 6 months ago bc07e10 v0.4.5
mail/emailsubmission: fix Envelope.MailFrom JSON property

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>
1 files changed, 1 insertions(+), 1 deletions(-)

M mail/emailsubmission/emailsubmission.go
M mail/emailsubmission/emailsubmission.go => mail/emailsubmission/emailsubmission.go +1 -1
@@ 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"`