[gmail-detection-and-category-scanning] #01: Protocol-Level Gmail Detection & Fake Transport Extensions #12

Closed
opened 2026-08-28 17:32:17 +03:00 by jalmari · 0 comments
Owner

Feature: gmail-detection-and-category-scanning | Source: .scratch/gmail-detection-and-category-scanning/issues/01-protocol-gmail-detection-and-fake-transport.md

01: Protocol-Level Gmail Detection & Fake Transport Extensions

What to build: Implement protocol-level detection of Gmail / Google Workspace mailboxes on MailboxGateway via the X-GM-EXT-1 capability (with hostname/banner fallback), without relying on email address domain names. Extend FakeImapTransport to simulate X-GM-EXT-1 capability negotiation.

Blocked by: None (can start immediately)

Status: completed

  • MailboxGateway.is_gmail property accurately reports True when X-GM-EXT-1 is in self.capabilities or server hostname matches Google IMAP servers.
  • FakeImapTransport supports initializing with capabilities=("MOVE", "UIDPLUS", "X-GM-EXT-1").
  • Unit tests in test_mailsweep.py verify Gmail detection on custom domains (e.g. @aina.net, @company.com) without @gmail.com in the address.
  • Non-Gmail standard IMAP transports report is_gmail=False with zero behavior changes.
**Feature**: `gmail-detection-and-category-scanning` | **Source**: `.scratch/gmail-detection-and-category-scanning/issues/01-protocol-gmail-detection-and-fake-transport.md` # 01: Protocol-Level Gmail Detection & Fake Transport Extensions **What to build:** Implement protocol-level detection of Gmail / Google Workspace mailboxes on `MailboxGateway` via the `X-GM-EXT-1` capability (with hostname/banner fallback), without relying on email address domain names. Extend `FakeImapTransport` to simulate `X-GM-EXT-1` capability negotiation. **Blocked by:** None (can start immediately) **Status:** `completed` - [x] `MailboxGateway.is_gmail` property accurately reports `True` when `X-GM-EXT-1` is in `self.capabilities` or server hostname matches Google IMAP servers. - [x] `FakeImapTransport` supports initializing with `capabilities=("MOVE", "UIDPLUS", "X-GM-EXT-1")`. - [x] Unit tests in `test_mailsweep.py` verify Gmail detection on custom domains (e.g. `@aina.net`, `@company.com`) without `@gmail.com` in the address. - [x] Non-Gmail standard IMAP transports report `is_gmail=False` with zero behavior changes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Lavisys/mailsweep#12
No description provided.