Re: username specification for email system

2019-09-05 Thread Wietse Venema
Wesley Peng:
> Hello,
> 
> Is there the username specification for email system?
> It seems most special characters like ".", "-", "+", "_", "#", "$" are
> permitted in the username part.
> And even ___username...@domain.com is right (like my sender account).
> So I was confused.

Email RFCs allow many localpart forms, but common sense limits that
to a mix of -+_.a-z0-9, leaving all the special characters for use
by the mail system.

Wietse


Re: username specification for email system

2019-09-05 Thread Bastian Blank
On Thu, Sep 05, 2019 at 03:45:47PM +0800, Wesley Peng wrote:
> Is there the username specification for email system?

It is called "local-part". And yes, RFC 5321 and 5322 have a pretty
comprehensive spec for it.

The following is a valid e-mail address for example:
"alert('Ohhai')"@43-1.org

Regards,
Bastian

-- 
It is undignified for a woman to play servant to a man who is not hers.
-- Spock, "Amok Time", stardate 3372.7


Re: username specification for email system

2019-09-05 Thread patpro

On 2019-09-05 09:45, Wesley Peng wrote:

Hello,

Is there the username specification for email system?
It seems most special characters like ".", "-", "+", "_", "#", "$" are
permitted in the username part.
And even ___username...@domain.com is right (like my sender account).
So I was confused.

Thanks.


Have you tryied the RFC that defines email addresses? (even the space in 
allowed:  or "my name"@example.com)


patpro


username specification for email system

2019-09-05 Thread Wesley Peng

Hello,

Is there the username specification for email system?
It seems most special characters like ".", "-", "+", "_", "#", "$" are
permitted in the username part.
And even ___username...@domain.com is right (like my sender account).
So I was confused.

Thanks.