Skip to content

fix: case-sensitive flag comparison in AgentMail bot#35

Merged
ralyodio merged 1 commit into
profullstack:mainfrom
threebeats:fix/flag-case-sensitive
Jun 16, 2026
Merged

fix: case-sensitive flag comparison in AgentMail bot#35
ralyodio merged 1 commit into
profullstack:mainfrom
threebeats:fix/flag-case-sensitive

Conversation

@threebeats

Copy link
Copy Markdown
Contributor

Bug

FLAG INBOX 1 enters the correct switch case but args[0] == "flag" fails because args[0] is "FLAG". This causes messages to be marked as Seen instead of Flagged.

Fix

Used strings.ToLower(args[0]) for the comparison so all case variants work.

Fixes #33

@ralyodio ralyodio merged commit 9c2886c into profullstack:main Jun 16, 2026
5 checks passed
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.

AgentMail bot uppercase FLAG marks messages seen instead of flagged

2 participants