Mailing List Archive

delim = '.' | '-' | '+' | ',' | '|' | '_' .... and more?
On Tue, Feb 03, 2004 at 12:12:31AM -0500, Paul Fisher wrote:
| I'm currently working on a small SPF patch/client for Exim. I have a
| few questions regarding the test suite (1.991) and RFC Draft 02.9.5
| that have been bugging me.
|
| 1. Tests #89 - #96 / RFC Draft Appendix A
|
| The TXT record for 70.spf1-test.mailzone.com is "v=spf1
| exists:%{lr+=}.lp._spf.spf1-test.mailzone.com -all". Appendix A lists
| valid macro delimiters -- the equal sign is not included. Was this an
| accidental omission in the RFC Draft, or should tests #89 through #96
| return "unknown" (parse error)?

delim = '.' | '-' | '+' | ',' | '|' | '_'

I think that's actually a little too specific; I would be okay with any
non-ALPHA char. What do people think?

It's intended to support the newfangled username+something@domain
convention, where you can tag +something on the end of your username.

Some people use +, others use -, so we shouldn't be too strict here.

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname@Ë`Ì{5¤¨wâÇSÓ°)h
Re: delim = '.' | '-' | '+' | ',' | '|' | '_' .... and more? [ In reply to ]
Am Di, den 03.02.2004 schrieb Meng Weng Wong um 18:36:

> I think that's actually a little too specific; I would be okay with any
> non-ALPHA char. What do people think?

That's ok. Forbidding certain delimiter characters doesn't make sense.

It should be non-alpha-numeric though.


-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname@Ë`Ì{5¤¨wâÇSÓ°)h
Re: delim = '.' | '-' | '+' | ',' | '|' | '_' .... and more? [ In reply to ]
Meng Weng Wong wrote:

> delim = '.' | '-' | '+' | ',' | '|' | '_'
>
> I think that's actually a little too specific; I would be okay with any
> non-ALPHA char. What do people think?
>
> It's intended to support the newfangled username+something@domain
> convention, where you can tag +something on the end of your username.
>
> Some people use +, others use -, so we shouldn't be too strict here.

My feeling is that we probably do need to enumerate the allowable
characters, otherwise there will be arguments about whether '{' is
allowed, and why '}' is not allowed.

It could be -- Characters in the range 33 - 126 excluding alpha numerics
and '}'.

Philip

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname@Ë`Ì{5¤¨wâÇSÓ°)h
Re: delim = '.' | '-' | '+' | ',' | '|' | '_' .... and more? [ In reply to ]
[.I meant this to go to the list, but I sent it to only Meng]


In <20040203173640.GJ7601@dumbo.pobox.com> Meng Weng Wong <mengwong@dumbo.pobox.com> writes:

> delim = '.' | '-' | '+' | ',' | '|' | '_'
>
> I think that's actually a little too specific; I would be okay with any
> non-ALPHA char. What do people think?

Well, you would need to exclude things like } and numbers. I assume
you would also have to exclude control characters. Things like the
quote characters might get people into trouble, as would () and <>.


I suspect that the RFCs have something to say about what is valid.

Hmmm...

RFC2821 says that the domain name can only be made up of [a-z0-9.-]

The local part is much more vague. It is defined as "atext", which
isn't defined in RFC2821. RFC2822 defines atext as:

atext = ALPHA / DIGIT / ; Any character except controls,
"!" / "#" / ; SP, and specials.
"$" / "%" / ; Used for atoms
"&" / "'" /
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "{" /
"|" / "}" /
"~"

Note that "," and ";" are not allowed.


> It's intended to support the newfangled username+something@domain
> convention, where you can tag +something on the end of your username.
>
> Some people use +, others use -, so we shouldn't be too strict here.

True, but for simplicity and safety sake, I'm not too excited about
having delimeters besides '+', '-', '=', '.', and "_".


-wayne

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname@Ë`Ì{5¤¨wâÇSÓ°)h