Skip to content

Add #[serde(default)] to to field of SimpleEmailCommonHeaders - #1171

Open
Supreeeme wants to merge 1 commit into
aws:mainfrom
Supreeeme:patch-1
Open

Supreeeme wants to merge 1 commit into
aws:mainfrom
Supreeeme:patch-1

Conversation

@Supreeeme

Copy link
Copy Markdown

✍️ Description of changes:
An SES event can be missing the to field, and without this can cause deserialization to fail. I can reproduce this, for example, by sending an email from Outlook to SES where all the recipients are only in the Bcc field.

🔏 By submitting this pull request

  • I confirm that I've ran cargo +nightly fmt.
  • I confirm that I've ran cargo clippy --fix.
  • I confirm that I've made a best effort attempt to update all relevant documentation.
  • I confirm that my contribution is made under the terms of the Apache 2.0 license.

An SES event can be missing the `to` field, and without this can cause deserialization to fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant