spf-discuss
[Top] [All Lists]

When should the proccessing of the SPF record end?

2004-03-23 06:52:00
I suggested:

If the parser encounters a syntax error or an unknown directive, it MUST
ignore the result and effect of all following directives and it MUST
return 'unknown'.
...
The parser MAY then continue to parse until the end of the record to
detect syntax errors or unknown directives and return 'unknown' if there
are syntax errors or unknown directives after the mechanism that matched.


That is wrong. It should say ("unknown mechanism" instead of "unknown
directive"):

If the parser encounters a syntax error or an unknown mechanism, it MUST
ignore the result and effect of all following directives and it MUST return
'unknown'.

...

The parser MAY then continue to parse until the end of the record to detect
syntax errors or unknown mechanisms and return 'unknown' if there are syntax
errors or unknown mechanisms after the mechanism that matched.

The parser MUST ignore unknown modifiers.

...

If thera was no matching mechanism and no redirect modifier, then the parser
MUST return 'neutral' if the 'include' recursion level is zero, otherwise it
MUST return 'nomatch'.

Roger