#include <revolution/nwc24.h>
NWC24Err NWC24CheckPublicMailAddr( const char* addr );
Checks the validity of an e-mail address.
This function checks the validity of addresses, according to the following rules:
Mail addresses must be of the form:
<local-part>@<domain-part>.
<local-part> is a character string consisting of one or more printable ASCII characters, excluding the following:
()<>[]:;@\".
Specifically, the allowed character set is as follows:!#$%&'*+-./0123456789=?ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`
abcdefghijklmnopqrstuvwxyz{|}~
<domain-part> also consists of one or more ASCII characters. The usable character set is:
.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
(Alphanumeric characters, hyphens, periods, and underscores are allowed.)
This part must not start with a period or contain more than one period in a row.
Furthermore, mail addresses with wii.com for the <domain-part> are also rejected.
This specification is indented to prevent registering a Wii friend as a general friend.
addr |
Pointer to the address string. |
NWC24_OK: Normal exit.
NWC24_ERR_NULL: Specified address is NULL.
NWC24_ERR_FORMAT: E-mail address is invalid as a mail address.
NWC24_ERR_STRING_END: Address is more than 255 characters.
NWC24_ERR_PROTECTED: Recipient address contains "@wii.com".
2006/12/05 Initial version.
CONFIDENTIAL