Skip to content

v0.8.2

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:23
· 24 commits to master since this release
a71b3b8

Fixed

  • Nested Multipart MIME Boundary Stack Unwinding (email.sublime-syntax):
    • Separated top-level body-block-multipart from nested body-block-multipart-nested so closing delimiters (--boundary--) inside nested containers (multipart/mixed → multipart/related → multipart/alternative) cleanly pop one stack level instead of leaking duplicate meta.block.body.eml scopes across the remainder of the message (#26).
    • Added a dedicated body-epilogue context for content following the top-level closing boundary so epilogue lines starting with -- cannot falsely re-enter MIME header parsing (#26).
    • Added pop-before-boundary guards to part-level header contexts (expect-body-instructions*) so empty or headerless MIME parts cleanly yield back to their enclosing multipart container (#26).
  • RFC 2046 Boundary Character & Escape Consistency (email.sublime-syntax, email_plugin.py):
    • Expanded boundary_name to support full RFC 2046 §5.1.1 bcharsnospace characters (including ., +, /, ', (, ), ,) with a linear-time disjoint pattern and optional trailing linear whitespace ([ \t]*), fixing boundary recognition for Outlook and JavaMail/SendGrid dotted delimiters (e.g., ----=_NextPart_000_0001_01D6A7B2.3C4D5E60) (#26).
    • Made Content-Type: multipart/* detection case-insensitive per RFC 2045 §5.1 (e.g., Multipart/Related) (#26).
    • Unified all embedded payload escape: lookaheads (html, html-quoted-printable, xml, rfc822, diff) and pop-before-boundary behind a shared boundary_lookahead variable, eliminating false escapes on punctuation-only dividers like ---- (#26).
    • Updated get_mime_part_headers and is_boundary_line in email_plugin.py to use message-declared boundaries and RFC 2046 fallback boundary matching across nested containers (#26).

Added

  • Nested Multipart Syntax Tests & Fixture:
    • Added tests/syntax_test_nested_multipart.eml validating 3-level MIME nesting (multipart/mixed → multipart/related → multipart/alternative), scope stack unwinding after closing delimiters, Outlook/JavaMail dotted boundaries, folded Content-Type headers, case-insensitive Multipart/*, punctuation-only dividers inside HTML, empty parts, and top-level epilogues (#26).
    • Added tests/fixtures/nested_multipart.eml and corresponding plugin unit tests in tests/test_plugin.py (#26).

Changed

  • Task Backlog Tracking (TODO.md):
    • Marked "Nested Multipart MIME Boundaries" as completed in the core grammar modernization checklist (#26).