marcbradshaw / Mail-AuthenticationResults

1 stars 4 forks source link

When should a token be a quoted string? #6

Closed marcbradshaw closed 10 months ago

marcbradshaw commented 1 year ago

ref: https://github.com/lieser/dkim_verifier/issues/242#issuecomment-1679395783

The value for policy.authority-uri contains characters that are not allowed in a simple token, so it must be in quotes to be a quoted-string (https://www.rfc-editor.org/rfc/rfc2045#section-5.1 contains the definition for value which is used by ARH here).

marcbradshaw commented 1 year ago

From the referenced RFC

tspecials := "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> "/" / "[" / "]" / "?" / "=" ; Must be in quoted-string, ; to use within parameter values