mail_list_awaiting_reply
Identify unanswered sent emails that need follow-up. Lists one message per recipient, sorted by wait time, so you know who to chase next.
Instructions
List messages the owner sent that nobody has answered yet, one per person, longest waiting first, to find follow-ups.
Use when: the owner asks who has not replied or what to chase. Not for received mail the owner has not answered (use mail_search_messages with unanswered_only=true) or for writing the follow-up (use mail_reply_to_message). Parameters: both optional; no folder is taken, the Sent folder is found automatically.
days (omitted = 21) counts back whole calendar days from today, date only; the same window bounds the sent mail and the answers searched for. Mail sent before it is never listed, even if unanswered.
limit (omitted = 20) cuts only the awaiting list; total still counts everyone waiting. There is no offset: when total exceeds 50, lower days to see the more recent ones.
Out-of-range values are clamped silently, not refused (days 1-90, limit 1-50). A larger days reads more headers in every folder, so it is slower. Behavior:
read-only; headers only, nothing marked read.
A sent message is answered when a message in another folder references it (In-Reply-To or References) or a recipient wrote after it; Drafts, Trash and Junk are not checked.
Only the latest message to each person counts; the owner's own and no-reply or notification addresses are left out. Returns: {folder, uidvalidity, days, total, returned, awaiting, complete}.
Each awaiting item has uid, to, subject, sent, days_waiting and last_seen_from_them (left out if they never wrote in the window).
uids are in that Sent folder: read with mail_get_message, passing folder and uidvalidity.
An empty awaiting means nothing waits; complete=false lists not_read folders where an answer may be missed. Errors: a Sent folder that cannot be found (check mail_list_folders).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look at mail the owner sent in the last N days (1-90). | |
| limit | No | Max messages to return (1-50). |