Subj : emailval.js accepts incomplete email addresses
To   : Codefenix
From : nelgin
Date : Sat Aug 31 2024 12:45 am

 Re: emailval.js accepts incomplete email addresses
 By: Codefenix to All on Thu Aug 29 2024 08:30:51

> if (user.netmail.indexOf(".") < 0 && user.netmail.indexOf("@") < 0) {
>   console.print("\r\n'" + user.netmail + "' is not a valid email address!");
>   console.pause();
>   return;
> }

Why not put this into a gitlab issue so Digital Man can review or add it, or maybe you could do a pull request?

Even better, it might be nice to have a method for sbbs to check if an email is valid, since this could be used in other places.

maybe valid_netmail(address)  checks for user@ whatever valid formats
valid_email(address) - check for [email protected]
valid_local(address) - checks user number, alias, handle and full name

---
� Synchronet � End Of The Line BBS - endofthelinebbs.com