spf-discuss
[Top] [All Lists]

Re: "/" inside an exists: domain-spec?

2005-07-15 05:20:48
Scott Kitterman wrote:

delimiter        = "." / "-" / "+" / "," / "/" / "_" / "="

Does that mean that if a "/" appears inside an exists:
domain-spec it's an error?

A <delimiter> is only relevant within <macro-expand>, and that
is in curly braces.

Can it be escaped somehow to be legal or is it just
forbidden?

IIRC it's just legal, some weird RfC about zone-cuts below /24
or a similar headache, I forgot the number.  It caused a major
revision of Mark's last MARID syntax in Wayne's first classic
spec., that's why we have the <toplabel> today.

 -exists:%{i}(_dot_)%{s1(_at_)}(_dot_)100/86400.rate.%{d}

A "/" should be okay, with %{d} instead of <toplabel>.  It's
only tricky if you have e.g. /25 at the end.  But an exists:
has no CIDR, the trick affects only a: or mx: mechanisms.

The %{s1(_at_)} is invalid, "@" is no delimiter.  If the idea is
to get the rightmost label, i.e. the TLD, then %[s1} should
do it.  Please correct me if I got it wrong.

                               Bye, Frank