Mailing List Archive

Proposed test cases (%_, %%. %-)
description: Macro mania
comment: >-
DNS supports any octet. SPF directly supports printable ASCII
and space, indirectly any octet, but no dots within labels.
tests:
outer-space:
description: >-
SPF supports spaces in DNS labels with a macro.
spec: 8.1/6
helo: you get mail from my pc
host: 1.2.3.4
mailfrom: "don't panic"@outer-space.test
result: pass
percent-hack:
description: >-
SPF supports percent in DNS labels with a macro.
spec: 8.1/6
helo: this is no IDNA or SMTP test
host: 1.2.3.4
mailfrom: yamamoto@outer-space.xn--zckzah
result: pass
inner-space:
description: >-
There is also a percent-encode space, go figure.
spec: 8.1/6
helo: inner%space.xn--zckzah
host: 1.2.3.5
mailfrom: ""
result: pass
zonedata:
outer-space.test:
- SPF: v=spf1 include:inner%_space.test -all
inner space.test:
- A: 1.2.3.4
outer-space.xn--zckzah:
- SPF: v=spf1 include:inner%%space.xn--zckzah -all
inner%space.xn--zckzah:
- A: 1.2.3.4
- SPF: v=spf1 include:inner%-space.xn--zckzah -all
inner%20space.xn--zckzah:
- A: 1.2.3.5




-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: http://www.listbox.com/member/archive/1007/=now
RSS Feed: http://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com
Re: Proposed test cases (%_, %%. %-) [ In reply to ]
On Sat, 28 Jun 2008, Frank Ellermann wrote:

> outer-space:
> description: >-
> SPF supports spaces in DNS labels with a macro.
> spec: 8.1/6
> helo: you get mail from my pc
> host: 1.2.3.4
> mailfrom: "don't panic"@outer-space.test
> result: pass
> zonedata:
> outer-space.test:
> - SPF: v=spf1 include:inner%_space.test -all
> inner space.test:
> - A: 1.2.3.4

This test is incorrect I think. I believe it should be:
outer-space:
description: >-
SPF supports spaces in DNS labels with a macro.
spec: 8.1/6
helo: you get mail from my pc
host: 1.2.3.4
mailfrom: "don't panic"@outer-space.test
result: pass
zonedata:
outer-space.test:
- SPF: v=spf1 a:inner%_space.test -all
inner space.test:
- A: 1.2.3.4

Since no SPF record was supplied for "inner space.test", the result
was permerror. But you expected a pass.


-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com
Re: Proposed test cases (%_, %%. %-) [ In reply to ]
On Sat, 28 Jun 2008, Frank Ellermann wrote:

> description: Macro mania
> comment: >-
> DNS supports any octet. SPF directly supports printable ASCII
> and space, indirectly any octet, but no dots within labels.
> tests:
> outer-space:
> description: >-
> SPF supports spaces in DNS labels with a macro.
> spec: 8.1/6
> helo: you get mail from my pc
> host: 1.2.3.4
> mailfrom: "don't panic"@outer-space.test
> result: pass
> percent-hack:
> description: >-
> SPF supports percent in DNS labels with a macro.
> spec: 8.1/6
> helo: this is no IDNA or SMTP test
> host: 1.2.3.4
> mailfrom: yamamoto@outer-space.xn--zckzah
> result: pass
> inner-space:
> description: >-
> There is also a percent-encode space, go figure.
> spec: 8.1/6
> helo: inner%space.xn--zckzah
> host: 1.2.3.5
> mailfrom: ""
> result: pass

I think Frank was in a hurry, and meant to use A: instead of include:
(Unless I'm missing something.) Here is the revised zonedata:

zonedata:
outer-space.test:
- SPF: "v=spf1 a:inner%_space.test -all"
"inner space.test":
- A: 1.2.3.4
outer-space.xn--zckzah:
- SPF: "v=spf1 a:inner%%space.xn--zckzah -all"
inner%space.xn--zckzah:
- A: 1.2.3.4
- SPF: "v=spf1 a:inner%-space.xn--zckzah -all"
"inner%20space.xn--zckzah":
- A: 1.2.3.5

--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.


-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com
Re: Proposed test cases (%_, %%. %-) [ In reply to ]
Stuart D. Gathman wrote:

> I think Frank was in a hurry, and meant to use A: instead
> of include: (Unless I'm missing something.)

ACK, should be A in these cases. Dunno if I was in a hurry,
lack of caffeine is also plausible.

The "macro mania" could be extended to do weird things with
%{s} or %{S} resulting in labels with an "@" or a "%40".

Any quoted string madness deserves its own test group, that
is no "macro mania", that's sick. Ignoring the question how
quoted strings and quoted pairs have to be encoded for YAML.

Frank



-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com
Re: Re: Proposed test cases (%_, %%. %-) [ In reply to ]
On Tue, 29 Jul 2008, Frank Ellermann wrote:

> Any quoted string madness deserves its own test group, that
> is no "macro mania", that's sick. Ignoring the question how
> quoted strings and quoted pairs have to be encoded for YAML.

YAML seems to use python syntax (which is C like). So how about
a sick-macro-jokes section?

--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.


-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com