2using System.Collections.Generic;
3using System.Threading.Tasks;
23 this.spfExpressions = SpfExpressions;
30 public override async Task<SpfResult>
Matches()
32 string Bak = this.
term.domain;
33 this.term.domain = this.
Domain;
59 this.term.domain = Bak;
The "include" mechanism triggers a recursive evaluation of check_host().
Include(Term Term, SpfQualifier Qualifier, params SpfExpression[] SpfExpressions)
The "include" mechanism triggers a recursive evaluation of check_host().
override async Task< SpfResult > Matches()
Checks if the mechamism matches the current request.
Abstract base class for SPF mechanisms with a domain specification.
string Domain
Domain specification
readonly Term term
Current request.
SpfQualifier Qualifier
Mechanism qualifier
Contains information about a SPF string.
Resolves a SPF string, as defined in:
static Task< KeyValuePair< SpfResult, string > > CheckHost(IPAddress Address, string DomainName, string Sender, string HelloDomain, string HostDomain, params SpfExpression[] SpfExpressions)
Fetches SPF records, parses them, and evaluates them to determine whether a particular host is or is ...
SpfQualifier
SPF Mechanism qualifier
SpfResult
Result of a SPF (Sender Policy Framework) evaluation.