Skip to content

feat: Add Encrypted Email detection with real-time UI updates and optimized ETA - #100

Merged
embiway merged 2 commits into
google:mainfrom
rishiksingh11:main
Jul 21, 2026
Merged

embiway merged 2 commits into
google:mainfrom
rishiksingh11:main

Conversation

@rishiksingh11

@rishiksingh11 rishiksingh11 commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

📖 Overview

This PR introduces comprehensive support for detecting, counting, and estimating the migration effort for Encrypted Emails (specifically .rpmsg attachments) in Exchange Online.

  1. It divides emails into 2 parts : Unencrypted and encrypted. Unencrypted use the same multiplier as current, while encrypted uses a different multipler configured for encrypted.
  2. It addresses the challenge where standard API calls miss wrapped encrypted content by implementing a granular "Deep-Dive" iteration approach with real-time feedback to the UI.

🖼️ UI Comparisons

Less than 20 users

Screenshot 2026-07-15 at 2 48 03 PM Screenshot 2026-07-15 at 2 55 02 PM Screenshot 2026-07-15 at 2 47 22 PM

Note

The "Encrypted Emails" scan is unchecked by default to preserve speed for standard audits, but can be enabled on-demand.

More than 20 users

image image

🛠️ Detailed Changes

🧠 Backend & Core Logic (util/eo_utils.py)

  • Deep-Dive Scan: Implemented granular pagination for the encrypted_messages resource type.
  • Attachment Inspection: Scans each message page-by-page (up to 500 items/page) and checks attachments for .rpmsg extensions.
  • Progress Callback: Integrated a callback to signal the UI thread immediately when encrypted emails are found, preventing application hangs during long loops.

🖥️ UI Enhancements (ui/exchange_online_ui.py, ui/utils.py)

  • New Checkbox: Added the "Encrypted Emails" option to the resource selection list.
  • Real-Time Update Integration: Wrapped the backend callback to safely update the "Encrypted Emails" progress bar in real-time across multiple worker threads.

⏱️ ETA Logic Optimization (util/constants.py, ui/exchange_online_ui.py)

  • Independent Speed Parameters: Added dedicated ETA parameters for encrypted emails, acknowledging that encryption processing introduces additional latency.
  • Safety Factor: Set the default encrypted ETA to use a conservative multiplier (0.5x of observed speed) to account for potential throttling.
  • Double Counting Fix: Updated the ETA accumulator to subtract encrypted emails from total emails before applying standard rates, ensuring accurate time estimates.

📊 Impact / Performance

  • Allows accurate planning for highly secure tenants by counting encrypted emails.
  • Better UX: Real-time feedback ensures admins know the tool is working, especially in encrypted emails case, where time taken is higher than normal runs
Comment thread util/eo_utils.py Resolved
Comment thread ui/exchange_online_ui.py Resolved
Comment thread util/eo_utils.py Resolved
@embiway
embiway merged commit 9af0078 into google:main Jul 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants