Skip to content

inbox threads list: --unread and the unread total - #16

Merged
fatwang2 merged 1 commit into
mainfrom
feat/threads-unread
Dec 5, 2026
Merged

fatwang2 merged 1 commit into
mainfrom
feat/threads-unread

Conversation

@fatwang2

@fatwang2 fatwang2 commented Dec 5, 2026

Copy link
Copy Markdown
Member

What

  • mailly inbox threads list --unread lists only threads with unread mail (GET /inbox/threads?unread=true). It combines with the address, folder and search options and the cursor.
  • The first page's unread_threads (threads matching the same filters that have unread mail) is in the JSON output, and the table output ends with Threads with unread mail: N.
  • Skill reference and the Chinese command docs show the option.

The API side is already live; the MCP tool mailly_list_threads has the same unread option.

Tests

  • New test: --unread sends unread=true with other filters, and is left out otherwise.
  • npm test passes (72).
  • Ran inbox threads list --unread --limit 3 against the live API: only unread threads, followed by the total.

🤖 Generated with Claude Code

--unread asks the API for only threads with unread mail. The first page
also returns unread_threads, the number of threads matching the same
filters that have unread mail; the table output shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fatwang2
fatwang2 merged commit cdfda26 into main Dec 5, 2026
3 checks passed
@fatwang2
fatwang2 deleted the feat/threads-unread branch December 5, 2026 08:53
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.

1 participant