fixed debug changes

This commit is contained in:
Christian Haschek 2021-11-10 08:04:58 +01:00
parent a098e63c9c
commit a36f4f2659

View file

@ -135,6 +135,7 @@ class CustomSMTPServer(smtpd.SMTPServer):
json.dump(savedata, outfile) json.dump(savedata, outfile)
#print edata #print edata
cleanup()
return return
if __name__ == '__main__': if __name__ == '__main__':
@ -159,9 +160,6 @@ if __name__ == '__main__':
if("CLEANUP" in Config.sections() and "delete_older_than_days" in Config.options("CLEANUP")): if("CLEANUP" in Config.sections() and "delete_older_than_days" in Config.options("CLEANUP")):
DELETE_OLDER_THAN_DAYS = (Config.get("CLEANUP","DELETE_OLDER_THAN_DAYS").lower() == "true") DELETE_OLDER_THAN_DAYS = (Config.get("CLEANUP","DELETE_OLDER_THAN_DAYS").lower() == "true")
cleanup()
quit()
print "[i] Starting Mailserver on port",port print "[i] Starting Mailserver on port",port
server = CustomSMTPServer(('0.0.0.0', port), None) # use your public IP here server = CustomSMTPServer(('0.0.0.0', port), None) # use your public IP here