imap_get_unread_count
Count unread emails per folder and total. Get an overview of unread messages across all or specified folders.
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. |