Skip to content

Fix mail search to list latest messages #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Dhravya
Copy link
Collaborator

@Dhravya Dhravya commented Apr 8, 2025

Fixes #30


For more details, open the Copilot Workspace session.

Dhravya added 2 commits April 8, 2025 13:01
… operation

* **utils/mail.ts**
  - Add `getLatestMails` function to list the latest 5 messages of a certain account using AppleScript without wildcards

* **index.ts**
  - Update `mail` tool to handle the new `latest` operation
  - Call `getLatestMails` function in the `latest` operation
  - Use the default or the first account if the account is not provided

* **tools.ts**
  - Modify `MAIL_TOOL` to include the new `latest` operation
  - Add required parameters for the `latest` operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apple mail search fails
1 participant