VirtualMailManager/VirtualMailManager.py
changeset 69 0c124160a991
parent 68 7ae95b9938c4
child 70 a3663ad491bf
equal deleted inserted replaced
68:7ae95b9938c4 69:0c124160a991
    34 SALTCHARS = './0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    34 SALTCHARS = './0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    35 RE_ASCII_CHARS = """^[\x20-\x7E]*$"""
    35 RE_ASCII_CHARS = """^[\x20-\x7E]*$"""
    36 RE_DOMAIN = """^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$"""
    36 RE_DOMAIN = """^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$"""
    37 RE_DOMAIN_SRCH = """^[a-z0-9-\.]+$"""
    37 RE_DOMAIN_SRCH = """^[a-z0-9-\.]+$"""
    38 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
    38 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
    39 RE_MAILLOCATION = """^[\w]{1,20}$"""
       
    40 RE_MBOX_NAMES = """^[\x20-\x25\x27-\x7E]*$"""
    39 RE_MBOX_NAMES = """^[\x20-\x25\x27-\x7E]*$"""
    41 
    40 
    42 class VirtualMailManager:
    41 class VirtualMailManager:
    43     """The main class for vmm"""
    42     """The main class for vmm"""
    44     def __init__(self):
    43     def __init__(self):