imap_find_thread_messages
Find unthreaded replies in another folder by matching In-Reply-To and References headers to existing thread messages.
Instructions
Find messages in searchFolder that belong to the same conversation threads as messages already in sourceFolder. Useful for catching replies that arrived after a thread was sorted. Works on any IMAP server (uses RFC 3501 HEADER search on In-Reply-To and References).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| searchFolder | No | Folder to search for related thread messages (default: INBOX) | INBOX |
| sourceFolder | Yes | Folder containing the already-sorted thread messages (e.g. "Review.Articles") | |
| searchReferences | No | Also search the References header for multi-level threads (default: true) |