Skip to content

test(imap): RFC 3501 §6.4.4 coverage for remaining flag SEARCH criteria#86

Open
ssilvius wants to merge 1 commit intomainfrom
feat/82-search-flag-tests
Open

test(imap): RFC 3501 §6.4.4 coverage for remaining flag SEARCH criteria#86
ssilvius wants to merge 1 commit intomainfrom
feat/82-search-flag-tests

Conversation

@ssilvius
Copy link
Copy Markdown
Contributor

Summary

  • Adds tests for DRAFT/UNDRAFT, FLAGGED/UNFLAGGED, RECENT/OLD, and UNANSWERED flag-based SEARCH criteria
  • All criteria map to { type: "flag", flag: "\\<Flag>", negated: bool } matching the existing parser implementation
  • OLD is correctly validated as \\Recent negated: true per RFC 3501 §6.4.4

Test coverage added (RFC 3501 §6.4.4)

  • DRAFT / UNDRAFT
  • FLAGGED / UNFLAGGED
  • RECENT / OLD
  • UNANSWERED

Closes

Closes #82

🤖 Generated with Claude Code

…iteria

DRAFT/UNDRAFT, FLAGGED/UNFLAGGED, RECENT/OLD, UNANSWERED were handled by
the FLAG_CRITERIA lookup table in parseSearchCriteria but had no tests.
Parser was correct; issue #82 was filed by reading only the switch
statement and missing the pre-dispatch lookup.

Resolves #82

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(imap): implement flag-based SEARCH criteria (ANSWERED/DELETED/DRAFT/FLAGGED/SEEN/UNSEEN)

1 participant