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))
def chattr(domain, username, password, attribute, *value): return daemon.execute('chattr', (domain, username, password, attribute) + value)
def autoresponse(domain, user, password, action, message=None): cmd = [domain, user, password, action] if message: cmd.append(message) return daemon.execute('autoresponse', cmd)
def execute(command, *args): return daemon.execute(command, args)
def chattr(domain, username, password, attribute, *value): return daemon.execute('chattr', (domain,username,password,attribute)+value)
def autoresponse(domain, user, password, action, message=None): cmd = [ domain, user, password, action ] if message: cmd.append(message) return daemon.execute('autoresponse', cmd)