Example #1
0
def adduser(domain,
            newuser,
            password,
            newpass,
            maildir=None,
            has_mailbox=None,
            forwards=[]):
    return daemon.execute('adduser3',
                          (domain, newuser, password, newpass, maildir
                           or '', has_mailbox or '') + tuple(forwards))
Example #2
0
def chattr(domain, username, password, attribute, *value):
    return daemon.execute('chattr',
                          (domain, username, password, attribute) + value)
Example #3
0
def autoresponse(domain, user, password, action, message=None):
    cmd = [domain, user, password, action]
    if message:
        cmd.append(message)
    return daemon.execute('autoresponse', cmd)
Example #4
0
def execute(command, *args):
    return daemon.execute(command, args)
Example #5
0
def chattr(domain, username, password, attribute, *value):
    return daemon.execute('chattr', (domain,username,password,attribute)+value)
Example #6
0
def autoresponse(domain, user, password, action, message=None):
    cmd = [ domain, user, password, action ]
    if message:
        cmd.append(message)
    return daemon.execute('autoresponse', cmd)
Example #7
0
def adduser(domain, newuser, password, newpass,
            maildir=None, has_mailbox=None, forwards=[]):
    return daemon.execute('adduser3',
                          (domain, newuser, password, newpass,
                           maildir or '', has_mailbox or '') + tuple(forwards))
Example #8
0
def execute(command, *args):
    return daemon.execute(command, args)