Roxen.git / server / etc / modules / Variable.pmod / Email.pike

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/Email.pike:31:       string user, domain;    sscanf(new_value, "%s@%s", user, domain);       domain=lower_case(domain);    sscanf(domain,    "%*[-abcdefghijklmnopqrstuvwxyz0123456789._]%s", tmp); // More characters?    if(sizeof(tmp))    return ({ LOCALE(314,"The email address domain contains forbidden characters."), new_value });    +  // RFC 5322 3.2.3 Atom: dot-atom-text.    sscanf(lower_case(user), -  "%*[-abcdefghijklmnopqrstuvwxyz0123456789._+]%s", tmp); // More characters? +  "%*[-abcdefghijklmnopqrstuvwxyz0123456789._+!#$%%&'*/=?^{}|]%s", tmp); // More characters?    if(sizeof(tmp))    return ({ LOCALE(315,"The email address user contains forbidden characters."), new_value });       if( !sizeof( user ))    return({ LOCALE(316,"The email address does not contain a user."), new_value });    if( !sizeof( domain ))    return({ LOCALE(317,"The email address does not contain a domain."), new_value });       if(user[0]=='.')    return ({ LOCALE(318,"The email address begins with an character that is not legal in that position."),