Email, maybe a new one?
frederikhors opened this issue · 3 comments
frederikhors commented
What do you think about conform's email
?
https://github.com/leebenson/conform/blob/master/conform.go#L31-L51
deankarn commented
I don't know if it's necessary TBH, what does manipulating only the domain portion give you if not extracting it?
frederikhors commented
I do not understand. Are you saying that checking that part is superfluous?
I'm trying to create something convenient for developers that corrects incorrect or inaccurate user input, e.g.:
CUSTOMER-EMAIL@EXAMPLE.COM" -> "CUSTOMER-EMAIL@example.com"
Because I know according to rfc5321, "The local-part of a mailbox MUST BE treated as case sensitive".
How would you do it?
deankarn commented
I'm just not sure how this would be used? is all caps after the @
actually incorrect?