Third male shortcuts male

Absolutely! Here’s the full set of instructions written in plain text so you can copy and paste it easily:

Shortcut Name: Export Mail to Text

  1. Open the Shortcuts app and tap the “+” to create a new shortcut.
  2. Tap “Add Action” and add the following actions in this exact order:

Action 1: Find Mail

  • Find Mail Where:
    • Date Received is in the Last 1 Day (you can change the time range if you like)
    • Sort by Date Received, Latest First
    • Limit to 10 (adjust as needed)

Action 2: Repeat with Each

  • Input: Select the result from “Find Mail”
  • This action creates a loop through each email

Inside the Repeat block, add the following actions:

Action 3: Get Details of Mail

  • Input: Repeat Item
  • Detail: Subject

Action 4: Get Details of Mail

  • Input: Repeat Item
  • Detail: Sender

Action 5: Get Details of Mail

  • Input: Repeat Item
  • Detail: Date Received

Action 6: Get Details of Mail

  • Input: Repeat Item
  • Detail: Message Body

Action 7: Text

  • Paste this into the text box:

Subject: [Subject]

From: [Sender]

Date: [Date Received]

Body:

[Body]

Replace [Subject], [Sender], [Date Received], and [Body] with the Magic Variables from the previous Get Details of Mail actions.

Action 8: Add to Variable

  • Variable Name: EmailText

After the Repeat block ends, add the following actions:

Action 9: Text

  • Content: Email Export

Action 10: Combine Text

  • Combine Text: Email Export and EmailText
  • Separator: New Lines

Action 11: Save File

  • Service: iCloud Drive (or choose another location)
  • Ask Where to Save: Optional (you can turn it off if you want it saved in a fixed place)
  • File Name: ExportedMail.txt
  • If File Exists: Replace or Append (choose what you prefer)

Now you can run the shortcut and it will grab your latest emails, extract the content, and save it as a text file.

Let me know if you want the shortcut file exported so you can import it directly!

Leave a comment