def __init__(self, config, section=None): PrependerPlugin.__init__(self, config, section) if self.section == 'MessageDebugger': self.section = 'debug' self.filter = None self.logger = self._logger() self.requiredvars = { 'debugport': { 'default': '10888', 'description': 'messages incoming on this port will be debugged to a logfile\nMake sure the debugport is also set in the incomingport configuration option in the main section', }, 'debugfile': { 'default': '/tmp/fuglu_debug.log', 'description': "debug log output", }, 'nobounce': { 'default': '1', 'description': 'debugged message can not be bounced', }, 'noreinject': { 'default': '1', 'description': "don't re-inject debugged messages back to postfix", }, 'noappender': { 'default': '1', 'description': "don't run appender plugins for debugged messages", }, }
def __init__(self, config, section=None): PrependerPlugin.__init__(self, config, section) self.filter = None self.requiredvars = { 'filterfile': { 'default': '/etc/fuglu/pluginfraction.regex', } } self.logger = self._logger()
def __init__(self, config, section=None): PrependerPlugin.__init__(self, config, section) self.requiredvars = { 'dbconnectstring': { 'default': 'mysql://root@localhost/test', 'description': "sqlalchemy db connect string", 'confidential': True, # this will hide the value in 'fuglu_conf -n' to protect confidential data } }
def __init__(self, config, section=None): PrependerPlugin.__init__(self, config, section) self.filter = None self.requiredvars = {"filterfile": {"default": "/etc/fuglu/skipplugins.regex"}} self.logger = self._logger()