def __init__(self,config,section=None): AppenderPlugin.__init__(self,config,section) self.logger=self._logger() self.requiredvars={ 'solrhost':{ 'default':'localhost' }, 'solrport':{ 'default':'8983', }, 'solrcollection':{ 'default':'mailarchive', }, 'solrtimeout':{ 'default':'10', }, 'solrttl':{ 'default':'', 'description':'ttl as lucene date math expression, for example +5MONTHS , see http://lucene.apache.org/solr/4_8_0/solr-core/org/apache/solr/util/DateMathParser.html', }, 'index_content':{ 'default':'0', 'description':'extract content and attachments using apache tikka', }, 'index_headers':{ 'default':'1', 'description':'add the full header section to the index', } } self.solr=None
def __init__(self, config, section=None): AppenderPlugin.__init__(self, config, section) BayesPlugin.__init__(self) self.requiredvars["hamthreshold"] = { "default": "-1", "description": "messages with score below this value will be learned as ham", } self.requiredvars["spamthreshold"] = { "default": "5", "description": "messages with score above this value will be learned as spam", }
def __init__(self, config, section=None): AppenderPlugin.__init__(self, config, section) BayesPlugin.__init__(self) self.requiredvars['hamthreshold'] = { 'default': '-1', 'description': 'messages with score below this value will be learned as ham' } self.requiredvars['spamthreshold'] = { 'default': '5', 'description': 'messages with score above this value will be learned as spam' }
def __init__(self, config, section=None): AppenderPlugin.__init__(self, config, section) self.logger = self._logger() self.requiredvars = { 'host': { 'default': '127.0.0.1', 'description': 'statsd host', }, 'port': { 'default': '8125', 'description': 'statsd port', }, } self.sock = None self.nodename = platform.node().split('.')[0]
def __init__(self, config, section=None): AppenderPlugin.__init__(self, config, section) self.logger = self._logger() self.requiredvars = { 'host': { 'default': '127.0.0.1', 'description': 'statsd host', }, 'port': { 'default': '8125', 'description': 'statsd port', }, 'level': { 'default': 'domain', 'description': 'domain: send stats per recipient domain. email: send stats per recipient email address' } } self.sock = None self.nodename = platform.node().split('.')[0]
def __init__(self,config,section): AppenderPlugin.__init__(self,config,section) self.logger=self._logger() self.requiredvars={ 'dbconnectstring':{ 'default':'mysql://root@localhost/test', 'description':'sqlalchemy connectstring', }, 'statementseparator':{ 'default':';', 'description':'Separator used to separate mutliple statements', }, 'statements':{ 'description':"""SQL statements to run, can containt standard variables as described in http://gryphius.github.io/fuglu/plugins-index.html#template-variables \n ${action} contains the action as string, eg. DUNNO """, 'default':"", }, }
def __init__(self, config, section): AppenderPlugin.__init__(self, config, section) self.logger = self._logger() self.requiredvars = { 'dbconnectstring': { 'default': 'mysql://root@localhost/test', 'description': 'sqlalchemy connectstring', }, 'statementseparator': { 'default': ';', 'description': 'Separator used to separate mutliple statements', }, 'statements': { 'description': """SQL statements to run, can containt standard variables as described in http://gryphius.github.io/fuglu/plugins-index.html#template-variables \n ${action} contains the action as string, eg. DUNNO """, 'default': "", }, }
def __init__(self, config, section=None): AppenderPlugin.__init__(self, config, section) FuzorMixin.__init__(self) self.logger = self._logger()