From 9c2886c9b8c80b86623d1e879d837a88edd80bd2 Mon Sep 17 00:00:00 2001 From: threebeats Date: Tue, 16 Jun 2026 06:20:17 -0400 Subject: [PATCH] fix: case-sensitive flag comparison in AgentMail bot (#35) --- internal/mailbox/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mailbox/bot.go b/internal/mailbox/bot.go index db12c52..8ba7b09 100644 --- a/internal/mailbox/bot.go +++ b/internal/mailbox/bot.go @@ -135,7 +135,7 @@ func RunBot(ctx context.Context, c *Client, args []string, in io.Reader, out io. if len(args) > 3 { on = !strings.EqualFold(args[3], "off") && args[3] != "false" && args[3] != "0" } - if args[0] == "flag" { + if strings.ToLower(args[0]) == "flag" { err = c.Flag(ctx, mailbox, uid, on) } else { err = c.MarkSeen(ctx, mailbox, uid, on)