[Kde-pim] Review Request: Return error when email address ends with '.'

Ingo Klöcker kloecker at kde.org
Wed Aug 26 23:20:06 BST 2009


On Wednesday 26 August 2009, Gary Greene wrote:
> On 8/26/09 11:08 AM, "Martin Koller" <kollix at 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 never came across a domain name ending in '.'. Even if it's valid we 
should still flag this as an error IMO since it is much more likely 
that a user accidentally typed a stray '.' than that he really meant to 
add a trailing '.' to a domain name.



Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090827/17310799/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list