def readConfigFile(self):
        f = open(self.fullpath, "r")
        content = f.readlines()
        f.close()
        serverdata = {}
        thisid = ""
        for l in content:
            line = l.replace("\n", "").replace("\r", "")
            if line.startswith("[") and line.endswith("]"):
                # new config
                # if we already have a config, save it first
                if thisid != "" and len(serverdata) > 0 and not thisid in self.serverinfo:
                    self.serverinfo[thisid] = serverdata
                thisid = line[1:-1]
                serverdata = {}
            if not line.startswith("#") and len(line) > 0 and "=" in line:
                lineparts = line.split("=")
                configparam = lineparts[0]
                if len(lineparts) > 1 and len(configparam) > 0 and len(line) > len(configparam):
                    configval = line[len(configparam)+1:]
                    serverdata[configparam] = configval
        # save the last one too
        if thisid != "" and len(serverdata) > 0 and not thisid in self.serverinfo:
            self.serverinfo[thisid] = serverdata

        return
dataset/ETHPy150Open corelan/dnshjmon/dnshjmon.py/MailConfig.readConfigFile/original