You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
MIME Payload Routing for Attached Emails (message/rfc822):
Embedded scope:text.eml for attached/forwarded email parts (Content-Type: message/rfc822), rendering full recursive header and body syntax highlighting within the enclosing multipart message (#24).
MIME Payload Routing for Calendar Invites (text/calendar):
Added dedicated syntax scoping for iCalendar meeting requests (BEGIN:VCALENDAR, BEGIN:VEVENT, properties, parameters, and key-values per RFC 5545) (#24).
MIME Payload Routing for Code Diffs and Patches (text/x-diff, text/x-patch):
Embedded scope:source.diff for unified diffs and patches attached or sent inline in developer email threads (#24).
Generic Attachment Export to File (EmailExportAttachmentCommand):
Generalized attachment export in email_plugin.py to support exporting both Base64 binary/text and text-based MIME attachments (message/rfc822, text/calendar, text/x-diff, text/x-patch, text/plain, etc.) directly to disk (#24).
Implemented boundary-aware MIME part extraction that accurately isolates the payload without capturing container preamble or trailing boundary lines, including handling diff chunks containing lines starting with --- (#24).
Added fallback extension guessing for .eml, .ics, .diff, .patch, .txt, and .html when no explicit filename parameter is declared (#24).
Maintained EmailExportBase64Command (email_export_base64) and find_base64_and_filename as backwards-compatible aliases (#24).
Common Text Attachments Test Fixture (tests/fixtures/text_attachments.eml):
Added test fixture with multipart sections containing message/rfc822, text/calendar, and text/x-diff (#24).
Syntax Test Assertions (tests/syntax_test_email.eml):
Added cursor scope assertions validating scoping of message/rfc822, text/calendar, and text/x-diff payload blocks and boundary termination (#24).
Unit Tests for Generic Attachment Export (tests/test_plugin.py):
Added automated test cases verifying export of .eml, .ics, and .patch attachments, boundary isolation, direct text selection exports, and command aliasing (#24).
Changed
Renamed Command Palette & Context Menu Actions:
Renamed "Email: Export Base64 Attachment to File" (email_export_base64) to "Email: Export Attachment to File" (email_export_attachment) in Default.sublime-commands and Context.sublime-menu (#24).
Task Backlog Tracking (TODO.md, ROADMAP.md):
Marked MIME payload routing for message/rfc822, text/calendar, and diffs as completed (#24).
Pruned rarely inline text formats (JSON, Markdown, CSV) from the roadmap in favor of common real-world email formats (#24).