From 5adb549b59dc28094ceda4d668ad599e51da7b1f Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Tue, 18 Dec 2018 23:04:02 -0500 Subject: [PATCH] add pop back --- mail4one/server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mail4one/server.py b/mail4one/server.py index fd94f5e..000f363 100644 --- a/mail4one/server.py +++ b/mail4one/server.py @@ -63,11 +63,10 @@ def drop_privileges(): async def a_main(args, tls_context): - # pop_server = await create_pop_server(args.mail_dir_path, port=args.pop_port, host=args.host, context=tls_context) + pop_server = await create_pop_server(args.mail_dir_path, port=args.pop_port, host=args.host, context=tls_context) smtp_server = await create_smtp_server(args.mail_dir_path, port=args.smtp_port, host=args.host, context=tls_context) drop_privileges() - # await pop_server.start_serving() - await smtp_server.serve_forever() + await asyncio.gather(pop_server.serve_forever(), smtp_server.serve_forever()) def main():