Modify SQL update script to accept NULL fields for users
The value NULL in the qid/ssid/tid fields of the user table means that the
value from the associated domain record should be used instead.
This patch modifies the PL/pgSQL functions used by Dovecot and Postfix
accordingly.
#!/usr/bin/env python# -*- coding: UTF-8 -*-# Copyright 2007 - 2011, Pascal Volk# See COPYING for distribution information."""This is the vmm main script."""importsysif__name__=='__main__':# replace the script's cwd (/usr/local/sbin) with our module dir# (the location of the VirtualMailManager directory)sys.path[0]='/usr/local/lib/vmm'fromVirtualMailManager.cli.mainimportrunsys.exit(run(sys.argv))