imap_get_unread_count
Counts unread emails per folder and provides a total. Specify folders to limit scope and speed up results.
Instructions
Count unread (unseen) emails per folder, plus a total. Use for "how many unread do I have?" overviews. Defaults to all folders; pass a folders list to limit scope and speed it up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folders | No | List of folders to check (default: all) | |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. |