[gmail-safety-and-standards-hardening] #03: All Mail Discovery & Fallback #22

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

Feature: gmail-safety-and-standards-hardening | Source: .scratch/gmail-safety-and-standards-hardening/issues/03-all-mail-discovery-and-fallback.md

03: All Mail Discovery & Fallback

What to build: Enable MailboxGateway.list_folders() to selectively discover and include [Gmail]/All Mail (or standard \ALL mailboxes) when tabbed category subfolders are not present on a Gmail server, providing comprehensive message coverage while ensuring zero duplicate reports via message deduplication.

Blocked by: 02: Domain Model Immutability & Dedup Encapsulation, 05: Decouple IMAP Protocol Extension Codecs, 06: Encapsulate Label Queries on Domain Model

Status: ready-for-agent

  • In MailboxGateway.list_folders(), preserve [Gmail]/All Mail / \ALL when is_gmail is active and category subfolders are not present.
  • Verify that scanning INBOX and [Gmail]/All Mail with MailboxGateway.scan() correctly deduplicates identical messages.
  • Add unit test verifying Gmail account without category folders discovers All Mail and scans cleanly.
**Feature**: `gmail-safety-and-standards-hardening` | **Source**: `.scratch/gmail-safety-and-standards-hardening/issues/03-all-mail-discovery-and-fallback.md` # 03: All Mail Discovery & Fallback **What to build:** Enable `MailboxGateway.list_folders()` to selectively discover and include `[Gmail]/All Mail` (or standard `\ALL` mailboxes) when tabbed category subfolders are not present on a Gmail server, providing comprehensive message coverage while ensuring zero duplicate reports via message deduplication. **Blocked by:** 02: Domain Model Immutability & Dedup Encapsulation, 05: Decouple IMAP Protocol Extension Codecs, 06: Encapsulate Label Queries on Domain Model **Status:** ready-for-agent - [ ] In `MailboxGateway.list_folders()`, preserve `[Gmail]/All Mail` / `\ALL` when `is_gmail` is active and category subfolders are not present. - [ ] Verify that scanning `INBOX` and `[Gmail]/All Mail` with `MailboxGateway.scan()` correctly deduplicates identical messages. - [ ] Add unit test verifying Gmail account without category folders discovers All Mail and scans cleanly.
Sign in to join this conversation.
No description provided.