VirtualMailManager/__init__.py
branchv0.6.x
changeset 208 efa1327b721f
parent 199 0684790fff7c
child 209 c705a9e38962
equal deleted inserted replaced
207:95be8f62bc0c 208:efa1327b721f
    35     locale.setlocale(locale.LC_ALL, '')
    35     locale.setlocale(locale.LC_ALL, '')
    36 except locale.Error:
    36 except locale.Error:
    37     locale.setlocale(locale.LC_ALL, 'C')
    37     locale.setlocale(locale.LC_ALL, 'C')
    38 ENCODING = locale.nl_langinfo(locale.CODESET)
    38 ENCODING = locale.nl_langinfo(locale.CODESET)
    39 
    39 
    40 RE_ASCII_CHARS = r"^[\x20-\x7E]*$"
       
    41 RE_DOMAIN = r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$"
    40 RE_DOMAIN = r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$"
    42 RE_LOCALPART = r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"
    41 RE_LOCALPART = r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"
    43 
    42 
    44 
    43 
    45 # there may be many domain and e-mail address checks
    44 # there may be many domain and e-mail address checks