get_todays_emails
Retrieve all emails received today from a specified mailbox, sorted by date with newest first, using environment variables for default account and mailbox settings.
Instructions
Get all emails received today from a mailbox.
Args: account: Account name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified. mailbox: Mailbox name. Uses JXA_MAIL_DEFAULT_MAILBOX env var or "Inbox" if not specified.
Returns: List of today's emails sorted by date (newest first).
Example: >>> get_todays_emails("Work") [{"subject": "Urgent: Review needed", "sender": "team@work.com", ...}]
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| mailbox | No |