lib/gettor/utils.py
def dumpMessage(dumpFile, message):
    """Dump a (mail) message to our dumpfile
    """
    # Be nice: Create dir if it's not there
    dumpDir = os.path.dirname(dumpFile)
    if not os.access(dumpDir, os.W_OK):
        if not createDir(dumpDir):
            logging.error("Could not create dump dir")
            return False
    try:
        fd = open(dumpFile, 'a')
        now = datetime.now()
        prefix = "Failed mail at %s:\n" % now.strftime("%Y-%m-%d %H:%M:%S")
        fd.write(prefix)
        fd.write(message)
        fd.close
        return True
    except Exception as e:
        logging.error("Creating dump entry failed: %s" % e)
        return False
Dump a (mail) message to our dumpfile
    
Dump a (mail) message to our dumpfile
Dump a ( mail ) message to our dumpfile
def dumpMessage(dumpFile, message):
    dumpDir = os.path.dirname(dumpFile)
    if not os.access(dumpDir, os.W_OK):
        if not createDir(dumpDir):
            logging.error("Could not create dump dir")
            return False
    try:
        fd = open(dumpFile, 'a')
        now = datetime.now()
        prefix = "Failed mail at %s:\n" % now.strftime("%Y-%m-%d %H:%M:%S")
        fd.write(prefix)
        fd.write(message)
        fd.close
        return True
    except Exception as e:
        logging.error("Creating dump entry failed: %s" % e)
        return False
def dumpMessage ( dumpFile , message ) : dumpDir = os . path . dirname ( dumpFile ) if not os . access ( dumpDir , os . W_OK ) : if not createDir ( dumpDir ) : logging . error ( "Could not create dump dir" ) return False try : fd = open ( dumpFile , 'a' ) now = datetime . now ( ) prefix = "Failed mail at %s:\n" % now . strftime ( "%Y-%m-%d %H:%M:%S" ) fd . write ( prefix ) fd . write ( message ) fd . close return True except Exception as e : logging . error ( "Creating dump entry failed: %s" % e ) return False
Dump a (mail) message to our dumpfile
Dump a ( mail ) message to our dumpfile
"""Dump a (mail) message to our dumpfile
    """ # Be nice: Create dir if it's not there
dumpFile
message