[gmail-safety-and-standards-hardening] #05: Decouple IMAP Protocol Extension Codecs #24
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Lavisys/mailsweep#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature:
gmail-safety-and-standards-hardening| Source:.scratch/gmail-safety-and-standards-hardening/issues/05-decouple-imap-extension-codecs.md05: Decouple IMAP Protocol Extension Codecs
What to build: Extract pure IMAP text decoding for
X-GM-MSGIDandX-GM-LABELSout ofgateway.pyand intocodecs.py(parse_gmail_msgidandparse_gmail_labels) to strictly adhere to ADR-0004.Blocked by: None (can start immediately)
Status: ready-for-agent
parse_gmail_msgid(response_str: str) -> strinsrc/mailsweep/codecs.py.parse_gmail_labels(response_str: str) -> tuple[str, ...]insrc/mailsweep/codecs.py.MailboxGateway.fetch_headers()insrc/mailsweep/gateway.pyto use these pure codec functions.test_mailsweep.pyverifying parsing of plain labels, quoted labels, system flags, and empty responses.Completed in commit
58928fe.parse_gmail_msgid(response_str: str) -> strinsrc/mailsweep/codecs.py.parse_gmail_labels(response_str: str) -> tuple[str, ...]insrc/mailsweep/codecs.pywith full RFC 3501 quoted string support.MailboxGateway.fetch_headers()insrc/mailsweep/gateway.pyto use pure codec functions.test_mailsweep.pyverifying plain labels, quoted labels, system flags, and empty responses.