# Convert EML files to one PDF, oldest first

> Markdown version of https://stella.sh/how/contacts-calendar-email/convert-eml-to-pdf for agents and LLMs.
> Put every saved email from one sender into a single PDF, oldest first, with attachments shown: Mail or Outlook one at a time, or Stella (stella.sh) for the whole folder.

Open each .eml (Mail on a Mac, Outlook or the Mail app on Windows), save or print it as a PDF, then combine the PDFs in date order: in Preview on a Mac by dragging thumbnails, or with a free PDF tool on Windows. For a few emails that's fine; for a folder it's slow, and Mail's export can cut off the right edge. Stella (stella.sh) picks out one sender's emails from a folder and makes one PDF, oldest first, without uploading them.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: One PDF in about 1 minute 10 seconds. Checked afterwards against an answer key written before the run: it holds all 11 of the landlord's emails from both his addresses, oldest first, none of the 22 unrelated emails, the em dash intact, the photo attachment shown, each email's date and subject, and the .eml files unchanged. The emails, landlord and flat are made up for this run. The test emails nearly all end “Regards, Gareth”, even ones from other senders, which Stella noticed and ignored, going by the actual sender. The work is sped up 5×.

Video (49 s): https://stella.sh/media/proofs/contacts-calendar-email/convert-eml-to-pdf/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. 36 saved emails (.eml) are in Documents/Flat emails.
- 0:02 The prompt: every email from the landlord in one PDF, oldest first.
- 0:18 Stella replies: it will pull out his emails and report how many went in and anything odd.
- 0:24 Reading the emails, sped up 5×.
- 0:35 Done: all 11 of his emails, March 2025 to April 2026, a contents page, the photo attachment, and notes on gaps for the dispute.

What Stella does:

1. Reads the 36 saved emails in the Flat emails folder, whose file names aren't in date order
2. Picks the 11 sent by the landlord, including two from his phone address under the same name, and leaves the 22 unrelated ones and your own replies out
3. Decodes every body type (plain, HTML-only and encoded) and keeps special characters like the em dash
4. Builds one PDF, oldest first: a contents page listing all 11, then each email on its own page with sender, date and full text, and the carpet-stain photo after the email it came with
5. Points out gaps worth knowing for a dispute, such as a reply to an email that isn't in the folder, and offers to add your own emails, marked as yours

## The prompt to paste

```text
For a deposit dispute I need every email my landlord, Gareth Pemberton, sent me in one PDF, oldest first. The emails are saved in the Flat emails folder in my Documents.
```

## Make the PDF yourself

1. **Find the right emails.** File names rarely sort in date order. Open each .eml (double-click) and note the sender and date. Look out for the same person writing from a second address.
2. **Mac: export each as PDF.** With an email open in Mail, choose File, Export as PDF, and name it starting with the date, like `2025-03-01 Welcome.pdf`, so they sort in order. If the right edge is cut off, use File, Print, PDF, Save as PDF instead.
3. **Windows: print each to PDF.** Open the .eml in classic Outlook or the Mail app, choose Print, pick Microsoft Print to PDF, and save with the date at the front of the name.
4. **Combine them.** Mac: open the first PDF in Preview, show Thumbnails, and drag the others into the sidebar in date order, then save. Windows: use a free PDF tool to merge them in name order.
5. **Add attachments.** Photos and documents attached to the emails aren't included in a printed email. Save them separately and add them after the email they came with.

## Where Stella stops

- Stella works on saved emails (.eml or .mbox files). It doesn't sign in to your email; save the emails from your mail app first.
- The email text is read by the AI model you use in Stella so it can tell who sent what. The PDF is made on your computer and nothing is uploaded to a converter.
- It includes only what you asked for. Here it left your replies out and offered to add them, marked as yours.
- Recorded on Linux. On a Mac or Windows PC Stella may install a small PDF library first, which wasn't recorded.

## Questions

**How do I open an .eml file?**
Double-click it. It opens in Mail on a Mac and in Outlook or the Mail app on Windows. Without a mail app, rename it to .txt to read the text, though attachments and HTML won't display.

**How do I save emails as .eml files?**
In Mail on a Mac, drag an email from the list into a Finder folder. In Gmail, open the email, click the three-dot menu and choose Download message. In Outlook, use File, Save As.

**Is a PDF of emails accepted as evidence?**
Often, but ask whoever handles your dispute. Keeping the original .eml files, as Stella did, preserves the full headers if anyone questions the PDF.

**Can it find the other documents about the same person?**
Yes: [find every file that mentions a name](https://stella.sh/how/files-folders/find-files-containing-text). To blank out details before sending, [redact the PDF](https://stella.sh/how/pdf-excel/redact-pdf).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Save emails as files or PDFs in Mail on Mac](https://support.apple.com/guide/mail/mlhlp1044/mac), [Apple Community: Mail export as PDF cuts off right side](https://discussions.apple.com/thread/251140151).

## Related problems

- [Find files containing text, whatever type of file they are](https://stella.sh/how/files-folders/find-files-containing-text.md)
- [How to redact a PDF so the text is really gone](https://stella.sh/how/pdf-excel/redact-pdf.md)
- [Convert an ICS calendar file to an Excel spreadsheet](https://stella.sh/how/contacts-calendar-email/convert-ics-to-excel.md)
- [How to open an mbox file](https://stella.sh/how/contacts-calendar-email/open-mbox-file.md)
- [Convert a contacts CSV to a VCF file for your phone](https://stella.sh/how/contacts-calendar-email/convert-csv-to-vcf.md)
- [Convert a VCF contacts file to Excel](https://stella.sh/how/contacts-calendar-email/convert-vcf-to-excel.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
