https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41025 --- Comment #5 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- (In reply to David Cook from comment #4)
Hmm, technically I think that Tomas might be wrong to raise a bug for the email library.
A valid email address is just a localpart@domain where domain can be a domain name or an IP address. As noted in this patch, the domain could be localhost. It could be a computer name, it could be an internal domain of some other type.
You're probably right. RFC 5322 says the domain-literal needs to make sense in the context being used: https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1 I was looking at the SMTP RFC: https://datatracker.ietf.org/doc/html/rfc5321#section-2.3.5 and thought in the context of SMTP it should really be a FQDN, an IP or some reserved words like localhost. Either way, it is not the email address parser responsibility, but the transport's. -- You are receiving this mail because: You are watching all bug changes.