[29.0] Prevent Sales Order Agent from skipping emails moved into monitored folders - #11098
[29.0] Prevent Sales Order Agent from skipping emails moved into monitored folders#11098tomasevicst wants to merge 1 commit into
Conversation
Good Sense Reviewer - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThe change stops email polling from overwriting Problem-solution fitFit: Strong The bug is caused by using a moving SuggestionsS1 (🟠 Moderate): Add tests for moved-folder polling Risk assessment and necessityRisk: Folder polling can now query from the configured Necessity: The deleted update is the path that made eligible moved messages permanently invisible after a successful empty poll. Keeping a stable lower bound is required for monitored folders because moving a message does not change its original received time.
|
What & why
Stop advancing Earliest Sync At after email polling. Moved emails retain their original received timestamp, so advancing this value could permanently exclude them from later retrieval.
The configured Start Date remains the retrieval lower bound, while Graph excludes emails already categorized as processed. Added regression tests for empty and under-full polling.
Linked work
Fixes AB#649176
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Risk & compatibility
Low risk. No schema, API, setup, or connector changes. Existing Start Date behavior during setup, reactivation, and mailbox changes remains unchanged. Previously processed emails continue to be excluded server-side by their Outlook category.