Skip to content

fix(parser): parse digit-led atoms that are not sequence sets as ATOM - #12

Merged
andris9 merged 1 commit into
masterfrom
fix/digit-led-atoms
Oct 7, 2026
Merged

andris9 merged 1 commit into
masterfrom
fix/digit-led-atoms

Conversation

@andris9

@andris9 andris9 commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Tokens like 10: or 12:30:00 are valid atoms (RFC 3501 section 9, : and , are ATOM-CHARs), so the parser returns them as ATOM instead of throwing Invalid sequence set. Commands that take a sequence set validate ATOM values themselves (ImapKit already does in getMessageRange).

Fixes #11

🤖 Generated with Claude Code

A token made of digits, ":", "," and "*" that is not a valid sequence set,
like "10:" or "12:30:00", is a valid atom (RFC 3501 section 9), so it is
returned as an ATOM instead of throwing. Commands that take a sequence set
validate ATOM values themselves.

Fixes #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andris9
andris9 merged commit e6f0746 into master Oct 7, 2026
5 checks passed
@andris9
andris9 deleted the fix/digit-led-atoms branch October 7, 2026 14:22
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.

Parser rejects digit-led atoms like 10: and 12:30:00 as invalid sequence sets

1 participant