Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/s/h/shiva-HEAD/analyzer/core/shivapushtodb.py   shiva(Download)
    exeSql = shivadbconfig.dbconnect()
 
    attachpath = server.shivaconf.get('analyzer', 'attachpath')
    inlinepath = server.shivaconf.get('analyzer', 'inlinepath')    
 
def sendfeed():
    sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/hpfeeds/")
    import hpfeeds    
 
    host = server.shivaconf.get('hpfeeds', 'host')
    port = server.shivaconf.getint('hpfeeds', 'port')
    ident = server.shivaconf.get('hpfeeds', 'ident')
    secret = server.shivaconf.get('hpfeeds', 'secret')

src/s/h/shiva-HEAD/analyzer/core/shivaaddnewrecord.py   shiva(Download)
    logging.info("Inside shivaaddnewrecord Module.")
 
    rawspampath = server.shivaconf.get('analyzer', 'rawspampath')
    queuepath = server.shivaconf.get('global', 'queuepath')    
    relay_enabled = server.shivaconf.getboolean('analyzer', 'relay')
 
	    # Following 3 lines does the relaying
	    queuePath = server.shivaconf.get('global', 'queuepath')
	    processMessage = server.QueueReceiver(queuePath)
	    processMessage.process_message(msgMailRequest)
 
            # Following 3 lines does the relaying
            queuePath = server.shivaconf.get('global', 'queuepath')
            processMessage = server.QueueReceiver(queuePath)
            processMessage.process_message(msgMailRequest)

src/s/h/shiva-HEAD/analyzer/core/shivamailparser.py   shiva(Download)
def movebadsample(key, msg):
    """Copies the troublesome spam to different folder and removes it from 
    queue.
    """
    queuepath = server.shivaconf.get('global', 'queuepath')
    undeliverable_path = server.shivaconf.get('analyzer', 'undeliverable_path')
    #logging.critical("inside mailparser module")
    global mailFields
    queuepath = server.shivaconf.get('global', 'queuepath')
 
    mailFields = {'headers':'', 'to':'', 'from':'', 'subject':'', 'date':'', 'firstSeen':'', 'lastSeen':'', 'firstRelayed':'', 'lastRelayed':'', 'sourceIP':'', 'sensorID':'', 'text':'', 'html':'', 'inlineFileName':[], 'inlineFile':[], 'inlineFileMd5':[], 'attachmentFileName':[], 'attachmentFile':[], 'attachmentFileMd5':[], 'links':[], 'ssdeep':'', 'len':'', 's_id':''}

src/s/h/shiva-HEAD/analyzer/core/shivaprocessold.py   shiva(Download)
 
                    # Following 3 lines does the relaying
                    queuePath = server.shivaconf.get('global', 'queuepath')
                    processMessage = server.QueueReceiver(queuePath)
                    processMessage.process_message(msgMailRequest)
 
                            # Following 3 lines does the relaying
                            queuePath = server.shivaconf.get('global', 'queuepath')
                            processMessage = server.QueueReceiver(queuePath)
                            processMessage.process_message(msgMailRequest)

src/s/h/shiva-HEAD/analyzer/core/shivanotifyerrors.py   shiva(Download)
def notifydeveloper(msg):
    senderid = server.shivaconf.get('notification', 'sender')
    recipient = server.shivaconf.get('notification', 'recipient')
    smtphost = server.shivaconf.get('analyzer', 'relayhost')
    smtpport = server.shivaconf.get('analyzer', 'relayport')