Ejemplo n.º 1
0
    def __init__(self, config):

        self.config = config
        self.db = connect_db(self.config)
Ejemplo n.º 2
0
    def __init__(self, config, source, destination=""):

        self.destination = destination
        self.name, self.domain = parse_email(source)
        self.config = config
        self.db = connect_db(self.config)
Ejemplo n.º 3
0
    def __init__(self, config, username, password=""):

        self.config = config
        self.db = connect_db(self.config)
        self.user, self.domain = parse_email(username)
        self.password = password
Ejemplo n.º 4
0
    def __init__(self, config, domain_name):

        self.domain_name = domain_name
        self.config = config
        self.db = connect_db(self.config)