News for hackers. Stuff that matters.
Re:Is_email() by johannes1234321 on Wednesday February 22, 2023 @07:15PM (#34905043)
I would filter out at least whitespaces and comma. Aside from catching typos this also protects against header injection or spam abusenby sending to multiple recipients.

And yes, those should be defended when constructing the mail, but checking early doesn't cost much.

Re:Is_email() by gnabgib on Wednesday February 22, 2023 @08:10PM (#34905486)
White space and comma are allowed in the local part (left of @), as long as it's surrounded by quotes [https://en.wikipedia.org/wiki/Email_address#Local-part] [https://www.rfc-editor.org/rfc/rfc5322#section-3.2.4]
Re:Is_email() by kentonv on Wednesday February 22, 2023 @09:37PM (#34906010)
Has anyone ever seen a quoted local part though?

Honest question! I'd love to hear the details of any specific case where one has ever been used.