Merge pull request #20 from EOCommunity/patch-1

Update mailserver.py
This commit is contained in:
Christian Haschek 2021-04-04 23:05:44 +02:00 committed by GitHub
commit 83ca154b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ class CustomSMTPServer(smtpd.SMTPServer):
filenamebase = str(int(round(time.time() * 1000)))
for em in rcpttos:
for em.lower in rcpttos:
if not os.path.exists("../data/"+em):
os.mkdir( "../data/"+em, 0755 )
@ -133,4 +133,4 @@ if __name__ == '__main__':
server = CustomSMTPServer(('0.0.0.0', port), None) # use your public IP here
print "[i] Ready to receive Emails"
print ""
asyncore.loop()
asyncore.loop()