Wire SetIdentityNotificationTopic into the send path so a verified
identity (or its parent domain) with a Bounce/Complaint/Delivery topic
receives an Amazon SNS notification when a matching event occurs,
independently of any configuration set. Previously the topic ARN was
stored and only echoed back by GetIdentityNotificationAttributes.
The notification uses the legacy notificationType payload format, which
shares the mail/bounce/complaint/delivery blocks with event publishing
but differs in three spec-mandated ways: the top-level discriminator is
named notificationType instead of eventType; the mail object omits the
tags field; and the original headers (headers/commonHeaders/
headersTruncated) are included only when the identity has
headers-in-notifications enabled for the notification type.
The sending identity is resolved from the bare email address (so a
display-name Source yields a valid identity/<email> ARN), and SendRawEmail
falls back to the MIME From header when Source is omitted, using that
effective source consistently for the stored message, SMTP relay, and
event publishing. RawMessageHeaders now parses the From address.
Docs: documented the behavior in docs/services/ses.md.