def METHOD_NAME(self, email: AnymailInboundMessage) -> EmailAlertPayload:
    subject = email.subject or ""
    subject = subject.strip()
    message = email.text or ""
    message = message.strip()
    sender = email.from_email.addr_spec
    return {"subject": subject, "message": message, "sender": sender}