Skip to content

Read messages that Mail stores only as partial files - #299

Merged
mattt merged 2 commits into
mainfrom
mattt/read-partial-mail-messages
Oct 24, 2026
Merged

mattt merged 2 commits into
mainfrom
mattt/read-partial-mail-messages

Conversation

@mattt

@mattt mattt commented Oct 24, 2026

Copy link
Copy Markdown
Owner

mail_messages_read failed for messages that Mail stores only as .partial.emlx files, with "Mail has downloaded only part of the message. Open the message in Mail to download it." In a test of main, this was 6 of the 15 newest messages. mattt/Envelope#7 reads these files, and Envelope 0.4.0 includes it.

This PR updates Envelope to 0.4.0 and raises the package minimum to match. Each attachment in the mail_messages_read output now has its media type as encodingFormat, a name that is null when the part has no filename, and isStoredSeparately, which marks the parts whose content Mail keeps outside the message file. The tool description and the README describe these fields.

mattt added 2 commits October 23, 2026 16:26
Envelope now reads messages that Mail stores only as .partial.emlx
files, which keep the text but leave out attachments and inline images
that Mail stores in separate files. Each attachment in the tool output
now has its media type and isStoredSeparately, and attachments without
a filename are listed with a null name.

This change uses Content.attachments, which needs an Envelope release
after 0.3.1.
@mattt mattt changed the title Read Mail messages that Mail stores only as partial files Read messages that Mail stores only as partial files Oct 24, 2026
@mattt
mattt merged commit 721e8fd into main Oct 24, 2026
2 checks passed
@mattt
mattt deleted the mattt/read-partial-mail-messages branch October 24, 2026 03:09
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.

1 participant