[gmail-detection-and-category-scanning] #02: Gmail Category Mailbox Discovery in Folder Listing #13

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/02-gmail-category-and-virtual-folder-discovery.md

02: Gmail Category Mailbox Discovery in Folder Listing

What to build: Update MailboxGateway.list_folders() to recognize and include Gmail category mailboxes ([Gmail]/Categories/*, [Gmail]/Luokat/*, Categories/*, etc.) when is_gmail is active, ensuring tabbed promotions, social, and updates folders are included in scans rather than filtered out.

Blocked by: 01: Protocol-Level Gmail Detection & Fake Transport Extensions

Status: completed

  • MailboxGateway.list_folders() preserves category mailbox paths (e.g. [Gmail]/Categories/Promotions, [Gmail]/Categories/Social, [Gmail]/Luokat/Tarjoukset) when is_gmail is True.
  • Non-category system mailboxes ([Gmail]/Trash, [Gmail]/Spam, [Gmail]/Drafts, [Gmail]/Sent Mail) remain properly excluded.
  • FakeImapTransport includes realistic Gmail folder listings with category mailboxes.
  • Unit tests in test_mailsweep.py verify that category mailboxes are discovered and scheduled for scanning across English and localized server names.
**Feature**: `gmail-detection-and-category-scanning` | **Source**: `.scratch/gmail-detection-and-category-scanning/issues/02-gmail-category-and-virtual-folder-discovery.md` # 02: Gmail Category Mailbox Discovery in Folder Listing **What to build:** Update `MailboxGateway.list_folders()` to recognize and include Gmail category mailboxes (`[Gmail]/Categories/*`, `[Gmail]/Luokat/*`, `Categories/*`, etc.) when `is_gmail` is active, ensuring tabbed promotions, social, and updates folders are included in scans rather than filtered out. **Blocked by:** 01: Protocol-Level Gmail Detection & Fake Transport Extensions **Status:** `completed` - [x] `MailboxGateway.list_folders()` preserves category mailbox paths (e.g. `[Gmail]/Categories/Promotions`, `[Gmail]/Categories/Social`, `[Gmail]/Luokat/Tarjoukset`) when `is_gmail` is `True`. - [x] Non-category system mailboxes (`[Gmail]/Trash`, `[Gmail]/Spam`, `[Gmail]/Drafts`, `[Gmail]/Sent Mail`) remain properly excluded. - [x] `FakeImapTransport` includes realistic Gmail folder listings with category mailboxes. - [x] Unit tests in `test_mailsweep.py` verify that category mailboxes are discovered and scheduled for scanning across English and localized server names.
Sign in to join this conversation.
No description provided.