From cc3ce6c4404e5619506af9394d55926fcbdcc5bf Mon Sep 17 00:00:00 2001 From: EOCommunity <80204570+EOCommunity@users.noreply.github.com> Date: Sun, 4 Apr 2021 23:01:02 +0200 Subject: [PATCH] Update mailserver.py Some sender will send emails to capitalized receiver mail. The counterpart "is_dir" (php) is case sensitive on Unix-systems, so if you check mails for mymail@domain.tld you will not see mails sent to MYMAIL@DOMAIN.TLD. This change will make sure that only lower-case is used to create a receiver-folder. --- python/mailserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mailserver.py b/python/mailserver.py index 0d62489..c67d6c3 100644 --- a/python/mailserver.py +++ b/python/mailserver.py @@ -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() \ No newline at end of file + asyncore.loop()