(20250118) Ready to test Mail Sync (Cron) on the server.

This commit is contained in:
2025-01-18 13:14:42 +05:30
parent 766b196a80
commit 258b2fdbaf
8 changed files with 80 additions and 44 deletions
+20
View File
@@ -85,6 +85,16 @@ class MailSyncOneResult(BaseModel):
default = False
)
attempted: bool = Field(
description = "whether, or not, sync'ing was tried for this mail",
default = False
)
isNew: bool = Field(
description = "whether, or not, this mail is new",
default = True
)
message: str | None = Field(
description = "a brief message to summarize the result of the process",
default = None
@@ -114,6 +124,16 @@ class MailSyncManyResults(BaseModel):
default = 0
)
newCount: int = Field(
description = "how many of the total mails were new",
default = 0
)
attemptedCount: int = Field(
description = "how many mails were attempted to sync.",
default = 0
)
successCount: int = Field(
description = "the no. of mails that were successfully sync'd",
default = 0