def connect(self, argv):
        bindto = None
        port = 25
        optlist, longopts, args = self.getopt(argv, "s:hp:")
        for opt, val in optlist:
            if opt == "-s":
                bindto = val
            elif opt == "-p":
                port = int(val)
        if len(args) < 1:
            self._print(self.connect.__doc__)
            return
        host = args[0]
        if len(args) > 1:
            port = int(args[1])
        if self._client:
            self._print("warning: closing existing connection.")
            self.quit()

        self._client = SMTP.get_mailer(logfile=self._logfile)

        try:
            code, msg = self._client.connect(host, port, bindto)
            self._print("%s %s" % (code, msg))
            self._setprompt(argv[1])
        except:
            self._client = None
            self._print("connect failed!")
            ex, val, tb = sys.exc_info()
            self._print(str(val))
Create a VRT file to present a netCDF file with multiple subdatasets to GDAL as a band stack
dataset/ETHPy150Open kdart/pycopia/net/pycopia/smtpCLI.py/EmailClientCLI.connect--crossover with--dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/tile_contents.py/TileContents.nc2vrt