github →

New request

#20648: Microsoft Sync does not respect selected Sent-Subfolders but syncs complete sent folder

We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.

Issue
sonarly:high

Bug Description

Like in #19745, there is a bug that all mails of the "sent" folder are synced even if just a subfolder is selected. If the folder is moved outside of the "sent" folder, the filter works fine. So to me, it looks like if any subfolder of the "sent" folder is selected, the whole sent folder will be synced.

Expected behavior

Only the selected folder (subfolder of the "sent" folder) should be synced.

Twenty Version: 2.5.1 Hosting: Self-hosted

Assessmentadvisory
bug●● medium85% confidence

Microsoft email sync logic evaluates selected folders under the Sent parent without scoping to the specific subfolder, syncing the entire Sent folder instead.

Likely files
  • packages/twenty-server/src/engine/core-modules/messaging/services/microsoft-messaging-import.service.ts
  • packages/twenty-server/src/engine/core-modules/messaging/services/messaging-utils.service.ts
  • packages/twenty-server/src/engine/core-modules/messaging/dtos
  • packages/twenty-server/src/engine/core-modules/messaging/messaging.module.ts
Create the request

This opens a fresh agent run and a draft PR for issue #20648.

Cancel