1e245f998990c8938b66857d9fd42c86d61b85cf — Tim Culverhouse 1 year, 3 months ago ca42a1a
mail/emailsubmission: change type on Capability

Change type on the SubmissionsExtension key of the EmailSubmission
capability object. The specification says this should be an object where
keys are strings, and values are arrays of strings. Fastmail returns an
empty array.

Change to json.RawMessage to enable compatibility until Fastmail fixes
their API.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 2 insertions(+), 1 deletions(-)

M mail/emailsubmission/emailsubmission.go
M mail/emailsubmission/emailsubmission.go => mail/emailsubmission/emailsubmission.go +2 -1
@@ 1,6 1,7 @@
package emailsubmission

import (


@@ 27,7 28,7 @@ type Capability struct {
	// the client may use when creating an EmailSubmission object (see
	// Section 7). Each key in the object is the ehlo-name, and the value is
	// a list of ehlo-args.
	SubmissionExtensions map[string]string `json:"submissionExtensions,omitempty"`
	SubmissionExtensions json.RawMessage `json:"submissionExtensions,omitempty"`

func (m *Capability) URI() jmap.URI { return URI }