Esempio n. 1
0
	def openlog(self, fname):
		import logfile
		try:
			fp = logfile.open(fname, "w")
		except:
			ex, val, tb = sys.exc_info()
			print >>sys.stderr, "Warning: could not open %r for writing: %s (%s)." % (fname, ex, val)
		else:
			self._FLIST.append(fp)
Esempio n. 2
0
def main(argv):
	global CF
	CF = basicconfig.get_config("/etc/mgetty+sendfax/voicemail.conf")
	if CF.get("LOGFILE"):
    	lf = logfile.open(CF.LOGFILE)
	else:
		lf = None

	rv = 1
Esempio n. 3
0
def main(argv):
    cf = ConfigHolder()
    cf.VOICEDIR = "/var/spool/voice"
    cf.MESSAGEDIR = "messages"
    cf.SPOOLDIR = "incoming"
    cf.GREETING = "greeting.rmd"
    cf.LOGFILE = "/var/log/voicemail/voicemail.log"

    lf = logfile.open(cf.LOGFILE)

    try:
        rv = Vgetty.answering_machine(cf, lf)
    finally:
        lf.close()
    return rv