def opt_kvdirdomain(self, domain):
        """Generate an SMTP/POP3 virtual domain, using KVDomain.
        This option requires
        an argument of the form 'NAME=PATH' where NAME is the DNS
        Domain Name for which email will be accepted and where PATH is
        a the filesystem path to a Maildir folder. [Example:
        'example.com=/tmp/example.com']
        """
        try:
            name, path = domain.split('=')
        except __HOLE__:
            raise usage.UsageError("Argument to --kvdirdomain must be of the form 'name=path'")

        self.last_domain = kvdomain.KVDomain(self.service, os.path.abspath(path))
        print 'DEBUG:', self.last_domain.getCredentialsCheckers()
        self.service.addDomain(name, self.last_domain)
dataset/ETHPy150Open tkanerva/openmail/OpenMail/openmail/mytap.py/Options.opt_kvdirdomain