Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SmtpAuthServId

function SmtpAuthServId(const aField: string): string;
THE HOST A FIELD SAYS WROTE IT: the authserv-id of an Authentication-Results field, read as RFC 8601 sec.2.2 defines it -

authres-payload = [CFWS] authserv-id [ CFWS authres-version ] ( no-result / 1*resinfo ) [CFWS] CRLF

authserv-id = value

- where value is RFC 2045's "value := token / quoted-string", and so for the first token of X-DNS-Warning and X-Stripped-Fields too. aField is the whole field, name and colon included, folded or not. Comments and white space before it are skipped, a quoted string is unquoted, and a token ends at white space, a control character or one of RFC 2045's tspecials, so a version or a comment after it is not part of it. The result is lower case and without trailing dots - "MX.Example.net." is "mx.example.net" - since a host name is compared without regard to case and the dot of a fully qualified name does not make it another. '' when there is none.