# Apple Mail for Raycast

URL: https://www.raycast.com/yug2005/mail

> Read and compose emails in Apple Mail, see unread and important messages, paste the latest OTP code from your inbox, and mark all as read.

- Install: raycast://extensions/yug2005/mail
- Author: [Yug Sahu](https://www.raycast.com/yug2005)
- Installs: 49,815
- Platforms: macOS
- Categories: Applications, Productivity, System, AI Extensions
- Updated: 2026-12-03
- Source: https://github.com/raycast/extensions/tree/b1964f1f2f51db76d4fcf67e97f0af60414e3d8d/extensions/mail/

## Commands

- **Check for New Mail**: Check for new mail for all accounts.
- **Paste Latest Otp Code**: Paste the latest OTP code from your emails.
- **Compose New Message**: Compose a new message.
- **See Recent Mail**: See recent unread messages.
- **See Important Mail**: See messages in the important mailboxes.
- **See Mail Accounts**: See mail accounts.
- **Share with Mail**: Share selected Finder items with Mail.
- **Refresh Mail**: Refresh all mailboxes.
- **Clear Cache**: Clears the cache for all accounts.
- **Mark All as Read**: Mark all your emails as read.
- **Copy Mail Deeplink**: Copy the deeplink of the selected email in Apple Mail.
- **Save Mail as File**: Copy the first selected email in Apple Mail as an EML file and optionally save it to the configured folder.

## AI tools

- **Search Emails**: Search for emails in Apple Mail.
- **Read Inbox Emails**: Search and read full email text from the Inbox in pages of up to 10 messages. Continue with nextOffset until hasMore is false; limitReached indicates the 10,000-message pagination ceiling.
- **Read Email**: Read the full content of an email.
- **List Addresses**: List addresses in Apple Mail.
- **List Account Emails**: List all available email addresses from the user's mail accounts.
- **List Mailboxes**: List mailboxes available in Apple Mail accounts.
- **Send Email**: Send an email with Apple Mail.
- **Reply or Forward Email**: Reply, reply-all, or forward an email in Apple Mail. Sending requires confirmation.
- **Manage Email**: Mark an email read or unread, archive it, move it to Junk, or move it to a mailbox. Mutations require confirmation.
- **List Email Attachments**: List attachments on an Apple Mail message.
- **Save Email Attachment**: Save an attachment to the configured mail attachment folder. Saving requires confirmation.
- **Move to Trash**: Move an email to Trash in Apple Mail.
- **Copy Email Link**: Copy the local link (URI) of the selected Apple Mail email so you can jump directly to that message. This makes it convenient to locate a specific email for context.

## README

### Apple Mail

Check, read and write email in Apple Mail without switching to it. Paste one-time codes from your inbox in one step.

#### Commands

**Read**

- **See Recent Mail**: Recent unread messages.
- **See Important Mail**: Messages in your important mailboxes.
- **See Mail Accounts**: All your accounts.
- **Check for New Mail** and **Refresh Mail**: Fetch new mail for all accounts.
- **Mark All as Read**: Clear your unread count.

**Write**

- **Compose New Message**: Write and send an email.
- **Share with Mail**: Send the files selected in Finder as attachments.

**Utilities**

- **Paste Latest Otp Code**: Finds the latest one-time code in your email and pastes it.
- **Copy Mail Deeplink**: Copies a link to the selected email.
- **Save Mail as File** copies the first selected email in the foremost Mail window as an `.eml` file and can also save it to the configured folder.
- **Clear Cache**: Clears the cached data for all accounts.

Select an email in Apple Mail, run **Save Mail as File**, and paste the exported file into Finder or another app. If several emails are selected, the command exports the first one. By default, the command also saves the file to **Save Files To**. Existing files are kept, and repeated saved exports receive a numbered filename.

Turn off **Save Exported Emails** in the command's preferences to copy the file without saving it to Downloads or your configured folder. The command keeps one subject-named `.eml` file in the extension's `clipboard` support folder. If the filename stays the same, its contents are replaced. If the filename changes, the previous `.eml` file is removed. Only the latest clipboard-only export remains available, so earlier clipboard-history entries may no longer work after another export. After a successful export, the command also cleans up the temporary folders created by earlier versions.

The EML export keeps the raw message source, including its attachments. Apple Mail must have downloaded the message before it can be exported.

The command reports whether it is exporting, saving, or copying the file. If an export fails, Raycast shows the full error report. Choose **Copy Error** or press **⌘C** to copy it. In development mode, the terminal also reports the failed step and its error details. Successful exports close the window automatically.

#### Use it with Raycast AI

Mention `@mail` in Raycast AI to search, read, reply to, forward, move and send email in plain language. For example, "summarize the unread emails from today" or "reply to Anna and say Thursday works". It can also list and save attachments.

#### Preferences

- **Save Files To** controls where attachments and exported emails are saved. It defaults to `~/Downloads`.
- **Save Exported Emails** controls whether **Save Mail as File** also saves the file to **Save Files To**. It is enabled by default. Turning it off only copies the file to the clipboard.
- **Only show unread messages** (See Recent Mail).
