예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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",
     }
예제 #4
0
 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'
     }
예제 #5
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',
            },
        }
        self.sock = None
        self.nodename = platform.node().split('.')[0]
예제 #6
0
파일: a_statsd.py 프로젝트: oasiswork/fuglu
    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]
예제 #7
0
파일: a_statsd.py 프로젝트: oasiswork/fuglu
    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]
예제 #8
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':"",
         },
     }
예제 #9
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': "",
            },
        }
예제 #10
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]
예제 #11
0
 def __init__(self, config, section=None):
     AppenderPlugin.__init__(self, config, section)
     FuzorMixin.__init__(self)
     self.logger = self._logger()