Skip to content

Add mail send quota and fix web search API/MCP error responses#263

Merged
asim merged 1 commit intomainfrom
claude/spam-detection-system-Wo9ee
Mar 12, 2026
Merged

Add mail send quota and fix web search API/MCP error responses#263
asim merged 1 commit intomainfrom
claude/spam-detection-system-Wo9ee

Conversation

@asim
Copy link
Member

@asim asim commented Mar 12, 2026

Mail sending: Add OpMailSend (1 credit) for internal messages. Both the JSON/MCP path and form path now check and consume quota. External email already had OpExternalEmail (4 credits). Admins bypass both.

Web search API: Return proper JSON errors (401, 402) for API/MCP callers instead of HTML pages on auth failure or quota exceeded.

Also fix duplicate map keys in topics.go stop words.

https://claude.ai/code/session_01N1fSZGf1RugAs24vkR5TSb

Mail sending: Add OpMailSend (1 credit) for internal messages. Both
the JSON/MCP path and form path now check and consume quota. External
email already had OpExternalEmail (4 credits). Admins bypass both.

Web search API: Return proper JSON errors (401, 402) for API/MCP
callers instead of HTML pages on auth failure or quota exceeded.

Also fix duplicate map keys in topics.go stop words.

https://claude.ai/code/session_01N1fSZGf1RugAs24vkR5TSb
@asim asim merged commit ccdf20b into main Mar 12, 2026
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.

2 participants