Repository navigation
perf: Optimize Encrypted Email detection via server-side Content-Class filter [v4.2.3] - #166
Merged
embiway merged 4 commits intoSep 11, 2026
Conversation
Contributor
Author
|
cc @NityamPareek for review! |
NityamPareek
self-requested a review
September 11, 2026 08:26
embiway
approved these changes
Sep 11, 2026
Collaborator
|
@rishiksingh11 please ensure that you also clean up the dead code which is now not required after these changes. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewer: @NityamPareek
Proposed Release Tag:
This PR proposes and tags release **** for Migration Planner.
Tag reference:
PR Description: Optimize Encrypted Email Detection via Server-Side MAPI Filter
Summary of Changes
Replaces the client-side email-by-email pagination scan (Option C introduced in PR #100) with a server-side indexed MAPI filter on Microsoft Graph API.
Problem with Previous Approach (PR #100)
$expand=attachments($select=name)&$top=500&$select=id).New Approach: Server-Side MAPI Extended Property Filter
Exchange Online / Microsoft Purview / OME stamps encrypted messages with the internet header
Content-Class: rpmsg.message, mapped to MAPI named property:We query Graph API using an indexed OData filter:
@odata.countin a single batch request, matching how contacts, calendars, and normal messages are retrieved.hasAttachments == false(where Exchange treats.rpmsgas an alternative body wrapper rather than a user file attachment).Performance Benchmarks
@odata.countheader.rpmsgfile attachmentsTrial Run Demo (Screencast)
Below is an end-to-end screencast of a trial run using the new code: entering credentials, selecting CSV input, toggling Encrypted Emails under Advanced Settings, scanning the mailbox in real-time, and rendering the final Corpus Report and Timeline:
UI Changes & Screenshots
Configuration Screen: "Encrypted Emails" toggle is seamlessly integrated under Advanced Settings without needing a slow scan warning dialog.
)

.ui/exchange_online_ui.py.python3 -m py_compilechecks passed with zero errors.