[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Review Request: Return error when email address ends
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2009-08-27 21:48:52
Message-ID: 200908272348.57692 () thufir ! ingo-kloecker ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 27 August 2009, Allen Winter wrote:
> On Thursday 27 August 2009 2:13:46 pm Ingo Klöcker wrote:
> > On Thursday 27 August 2009, Gary L. Greene, Jr. wrote:
> > > On Wednesday 26 August 2009 10:17:35 pm Torgny Nyblom wrote:
> > > > On Wednesday 26 August 2009 20:33:09 you wrote:
> > > > > On 8/26/09 11:08 AM, "Martin Koller" <kollix@aon.at> wrote:
> > > > > > On Wednesday 26 August 2009, Torgny Nyblom wrote:
> > > > > >> Check if an email address ends with '.'. If this is the
> > > > > >> case return an error. Add unit tests for this as well as
> > > > > >> for the "isValidAddressList()" function.
> > > > > >
> > > > > > I think it is valid that an email address's domain ends
> > > > > > with a "." Have a look at RFC 1035
> > > > >
> > > > > This is legal according to the RFCs since email clients are
> > > > > supposed to treat this no differently than DNS clients.
> > > >
> > > > I've been looking at that RFC but I cannot find were it says
> > > > that "user@domain.tld." should be a vaild email address. Could
> > > > you point me to where this is specified?
> > >
> > > As this is defined in RFC 3696,
> > > http://tools.ietf.org/html/rfc3696#page-5 , The domain portion
> > > must be a valid domain address that is understood by DNS for the
> > > express purpose of discovering the MX for a given network. These
> > > are of course defined in RFC 1035 that the trailing . is legal.
> >
> > In fact, the trailing period is not just legal, it even has a
> > special semantic.
> >
> > RFC 3696, section 2 (Restrictions on domain (DNS) names) reads
> >    [...] The DNS specification also
> >    permits a trailing period to be used to denote the root, e.g.,
> >    "a.b.c" and "a.b.c." are equivalent, but the latter is more
> > explicit and is required to be accepted by applications. [...]
> >
> > (cf. http://tools.ietf.org/html/rfc3696#page-4)
> >
> >
> > So, the change should be reverted/rejected.
>
> If we want to be really nice, we could put up a "did you really want
> to have the trailing '.' ?" dialog. With a do-not-ask-again option.
>
> Dear user: You specified an email address with a trailing '.' 
> (foo@a.b.c.).  This is legal, but may not be what you wanted. 
> Continue? Cancel?
>
> just an idea.

I don't think it's worth the pain implementing and maintaining this.


Regards,
Ingo

["signature.asc" (application/pgp-signature)]

_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic