Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot unmarshal string into Go struct field SimpleEmailReceipt.dmarcPolicy of type events.SimpleEmailVerdict #126

Closed
kaihendry opened this issue Sep 24, 2018 · 2 comments
Labels

Comments

@kaihendry
Copy link

Workaround was to:

DMARCPolicy          json.RawMessage          `json:"dmarcPolicy"`

https://github.com/aws/aws-lambda-go/blob/master/events/ses.go#L37

These poor mappings are making it really quite painful to develop with Golang and AWS... Else am I missing a trick?

@bmoffatt
Copy link
Collaborator

looks like same test sample included #102 doesn't match the docs description.

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-notifications-contents.html#receiving-email-notifications-contents-receipt-object

Possible values for this field are:

none: The owner of the sending domain requests that no specific action be taken on messages that fail DMARC authentication.

quarantine: The owner of the sending domain requests that messages that fail DMARC authentication be treated by receivers as suspicious.

reject: The owner of the sending domain requests that messages that fail DMARC authentication be rejected.

Until a fix is pushed, you can continue using your patch, or use the v1.4.0 tag

@bmoffatt
Copy link
Collaborator

merged #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants