mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 22:37:28 +00:00
fix: case-sensitive flag comparison in AgentMail bot (#35)
This commit is contained in:
parent
337011fa03
commit
9c2886c9b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue