This commit is contained in:
Son NK 2019-11-08 07:55:29 +01:00
parent d3985e2cf3
commit c2546cb0de
2 changed files with 8 additions and 5 deletions

View file

@ -541,3 +541,5 @@ class ForwardEmail(db.Model, ModelMixin):
# this reply email is created every time a website sends an email to user # this reply email is created every time a website sends an email to user
# it has the prefix "reply+" to distinguish with other email # it has the prefix "reply+" to distinguish with other email
reply_email = db.Column(db.String(128), nullable=False) reply_email = db.Column(db.String(128), nullable=False)
gen_email = db.relationship(GenEmail)

View file

@ -136,10 +136,11 @@ class MailHandler:
return "250 Message accepted for delivery" return "250 Message accepted for delivery"
controller = Controller(MailHandler(), hostname="localhost", port=20381) if __name__ == "__main__":
controller = Controller(MailHandler(), hostname="localhost", port=20381)
controller.start() controller.start()
print(">>", controller.hostname, controller.port) print(">>", controller.hostname, controller.port)
while True: while True:
time.sleep(10) time.sleep(10)