diff --git a/confreader/configreader.py b/confreader/configreader.py index a1227055..981292ec 100644 --- a/confreader/configreader.py +++ b/confreader/configreader.py @@ -48,9 +48,12 @@ class ConfigReader: def getSections(self): """ Returns all the sections present in the configuration - file except the DEFAULT section. + file except the DEFAULT and MAIL sections. """ - return self.configParser.sections() + sections = self.configParser.sections() + sections.remove("MAIL") + logSys.debug("Found sections: " + `sections`) + return sections # Each optionValues entry is composed of an array with: # 0 -> the type of the option