go-playground/mold

Email, maybe a new one?

frederikhors opened this issue · 3 comments

I don't know if it's necessary TBH, what does manipulating only the domain portion give you if not extracting it?

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?

I'm just not sure how this would be used? is all caps after the @ actually incorrect?