Convert EML files to one PDF, oldest first
Eleven emails from a landlord, out of 36, in one dated PDF for a deposit dispute.
A real run on 13 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. The waiting is sped up; it took 1 min 49 s in real time.
The short answer.
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.
Stella does this on Windows, Mac and Linux.
What happened.
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×.
How Stella does it.
- Reads the 36 saved emails in the Flat emails folder, whose file names aren't in date order
- 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
- Decodes every body type (plain, HTML-only and encoded) and keeps special characters like the em dash
- 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
- 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.
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.
This is the exact prompt from the recording. If your files are somewhere else, say where.
Do it yourself.
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.
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.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.
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.
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 it 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. To blank out details before sending, redact the 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.
- Apple: Save emails as files or PDFs in Mail on Mac
- Apple Community: Mail export as PDF cuts off right side
Checked against these sources on 13 November 2026.