Skip to content

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

Open
threebeats wants to merge 1 commit into
profullstack:mainfrom
threebeats:fix/flag-case-sensitive
Open

fix: case-sensitive flag comparison in AgentMail bot#35
threebeats wants to merge 1 commit into
profullstack:mainfrom
threebeats:fix/flag-case-sensitive

Conversation

@threebeats

Copy link
Copy Markdown

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

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

1 participant