(20250117) Major revamping in the mail module. Everything revamped. Sending is a pending task.

This commit is contained in:
2025-01-17 15:36:59 +05:30
parent 32c243f3d3
commit be9bdf797a
12 changed files with 675 additions and 65 deletions
@@ -6,7 +6,7 @@
DATE:
Tuesday, 3rd Dec., 2024
Friday, 17th Jan., 2025.
OBJECTIVE:
@@ -178,7 +178,7 @@ async def get_one_mail(
# Get the mail:
message = await current_app.mail_controller.get_one_mail(
mongo_conn = current_app.data_mongo,
mongo_data_conn = current_app.data_mongo,
message_id = inbound_data.messageId
)
@@ -6,7 +6,7 @@
DATE:
Tuesday, 3rd Dec., 2024
Friday, 17th Jan., 2025.
OBJECTIVE:
@@ -181,7 +181,7 @@ async def list_mails(
# Get the token ids from the token keys:
auth_tokens = await current_app.mail_controller.get_tokens_from_keys(
mongo_conn = current_app.data_mongo,
mongo_data_conn = current_app.data_mongo,
token_keys = inbound_data.tokenKeys
)
token_ids = [t.authTokenId for t in auth_tokens]
@@ -193,7 +193,7 @@ async def list_mails(
# Get the mails:
mails_list = await current_app.mail_controller.list_mails(
mongo_conn = current_app.data_mongo,
mongo_data_conn = current_app.data_mongo,
token_ids = token_ids,
limit = inbound_data.count,
skip = inbound_data.fromCount,