~rockorager/go-jmap-devel

mail/emailsubmission: fix Envelope.MailFrom JSON property v1 PROPOSED

Karel Balej: 1
 mail/emailsubmission: fix Envelope.MailFrom JSON property

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rockorager/go-jmap-devel/patches/48643/mbox | git am -3
Learn more about email & git

[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>
---
 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