You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postmark inbound: Fix ValueError with long, non-ASCII name
Receiving a Postmark inbound message with a long From or recipient Name field could result
in "ValueError: Header values may not contain linefeed or carriage return characters" if
the name included non-ASCII characters.
Anymail's EmailAddress calls Django's sanitize_address(), which can introduce folding
whitespace, causing an error in the AnymailInboundMessage constructor. Only Postmark inbound
is affected, as no other webhooks construct an EmailAddress.
(Longer-term, Anymail should stop using the undocumented Django sanitize_address.)
0 commit comments