This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients barry, eric.smith, jpic, r.david.murray
Date 2019-07-03.10:59:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562151581.75.0.909529425281.issue37492@roundup.psfhosted.org>
In-reply-to
Content
RFC 1034 defines absolute domain names as ending with dot:

------------
When a user needs to type a domain name, the length of each label is omitted and the labels are separated by dots (".").  Since a complete domain name ends with the root label, this leads to a printed form which ends in a dot.  We use this property to distinguish between:

   - a character string which represents a complete domain name
     (often called "absolute").  For example, "poneria.ISI.EDU."

   - a character string that represents the starting labels of a
     domain name which is incomplete, and should be completed by
     local software using knowledge of the local domain (often
     called "relative").  For example, "poneria" used in the
     ISI.EDU domain.
------------

I'll admit that it isn't common to specify absolute domain names, and many resolvers treat a domain name with an internal dot, but no terminal dot, as an absolute name.

I doubt in practice there are any email addresses that have a TLD name. 

There's some bpo issue where this was discussed in reference to the ipaddress module. I think the issues was canonicalizing names, and it was decided not to add trailing dot to make them absolute. I realize that logic doesn't directly apply here.

In spite of "com." being a valid domain name, I think it's reasonable to reject it as the domain part of an email address. But there should be a comment in the code as such.
History
Date User Action Args
2019-07-03 10:59:41eric.smithsetrecipients: + eric.smith, barry, r.david.murray, jpic
2019-07-03 10:59:41eric.smithsetmessageid: <1562151581.75.0.909529425281.issue37492@roundup.psfhosted.org>
2019-07-03 10:59:41eric.smithlinkissue37492 messages
2019-07-03 10:59:41eric.smithcreate