Re: IP Literal addresses -quoting?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Thompson
Fecha:  
A: Philip Hazel
Cc: jhenders, exim-users
Asunto: Re: IP Literal addresses -quoting?
Philip Hazel writes:
>
> On Thu, 10 Apr 1997, John Henders wrote:
>

[...]
> > address. Mutt will take an IP literal address such as user@???
> > and quote the []'s, i.e. user@"[127.0.0.1]". This seems to be done

[...]
>
> mutt is wrong. RFC 822 defines a domain as
>
> sub-domain.sub-domain.sub-domain...
>
> and sub-domain as domain-ref or domain-literal
>
> and domain-ref as atom (string of non-specials or quoted string)

                                                 ^^^^^^^^^^^^^^^^

>
> and domain-literal as [dtext]
>
> and dtext as any char excluding [ ] \


Not how I read RFC 822 section 6.1! Yes a <domain-ref> is an <atom>,
but no, it can't be a <quoted-string>. [The syntactic category
"<atom> or <quoted-string>" is called <word>.] *Otherwise*

user@"[127.0.0.1]"

*would* be a valid <address>, although the <domain> part still *wouldn't*
be a <domain-literal>.

So mutt is wrong, but not quite for the reason Philip says.

Or have I misinterpreted? RFC 822 isn't exactly light bedtime reading...

> So *syntactically*, one could have user@abcd.[127.0.0.1].xyz.[foobar],
> though that has no semantic meaning.


Agreed. But no quoted strings!

Chris Thompson               Cambridge University Computing Service,
Email: cet1@???    New Museums Site, Cambridge CB2 3QG,
Phone: +44 1223 334715       United Kingdom.