VirtualMailManager/ext/Postconf.py
branchv0.6.x
changeset 185 6e1ef32fbd82
parent 162 0ac9ef587769
child 216 0c8c053b451c
equal deleted inserted replaced
184:d0425225ce52 185:6e1ef32fbd82
     2 # Copyright (c) 2008 - 2010, Pascal Volk
     2 # Copyright (c) 2008 - 2010, Pascal Volk
     3 # See COPYING for distribution information.
     3 # See COPYING for distribution information.
     4 
     4 
     5 """A small - r/o - wrapper class for Postfix' postconf."""
     5 """A small - r/o - wrapper class for Postfix' postconf."""
     6 
     6 
       
     7 import re
     7 from subprocess import Popen, PIPE
     8 from subprocess import Popen, PIPE
     8 
     9 
     9 from __main__ import re, ERR
    10 import VirtualMailManager.constants.ERROR as ERR
    10 from VirtualMailManager.Exceptions import VMMException
    11 from VirtualMailManager.Exceptions import VMMException
    11 
    12 
    12 RE_PC_PARAMS = """^\w+$"""
    13 RE_PC_PARAMS = """^\w+$"""
    13 RE_PC_VARIABLES = r"""\$\b\w+\b"""
    14 RE_PC_VARIABLES = r"""\$\b\w+\b"""
    14 
    15