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
Non-Multipart Syntax Test Fixtures:
Added tests/syntax_test_non_multipart_html.eml verifying HTML syntax embedding for non-multipart emails starting without root <html> tags (#17).
Added tests/syntax_test_non_multipart_image.eml verifying meta.block.base64.image.eml scoping for standalone Base64 images to support plugin hover previews (#17).
Added tests/syntax_test_non_multipart_qp.eml verifying Quoted-Printable byte escape and continuation scoping in standalone plain text messages (#17).
Added tests/syntax_test_non_multipart_plain.eml asserting that plain text emails containing HTML code snippets do not trigger false-positive HTML scoping (#17).
Fixed
Multipart Scanning State Transitions & Non-Multipart Header Support:
Refactored header scanning state machine to inspect top-level Content-Type and Content-Transfer-Encoding rather than assuming all messages are multipart/* by default (#17).
Supported arbitrary header declaration orders (e.g. Content-Type before or after Content-Transfer-Encoding) and multi-line folded headers (#17).
Removed fragile fallback lookahead embeddings (^(?=(?:<html|<!DOCTYPE html)\b) and ^(?=<\?xml\b)) from body-content-default, preventing false-positive HTML embedding inside plain text emails with code blocks (#17).
Scoped quoted-printable and base64 transfer encodings with constant.language.eml (#17).
Unified header scoping under meta.block.header.eml across top-level and part-level header blocks (#17).
Changed
Backlog Tracking:
Updated TODO.md marking the multipart scanning state transitions refactoring as completed (#17).
AI Agent Guidelines (AGENTS.md, .github/copilot-instructions.md):
Enforced strict rules prohibiting AI agents from pushing directly to the default branch or self-merging Pull Requests (#17).
Repository Structure & Test Fixtures Consolidation:
Consolidated all demo and verification .eml files (email.eml, addresses.eml, non_multipart_html.eml, non_multipart_image.eml, non_multipart_plain.eml) into tests/fixtures/ (#17).
Cleaned up demo images, migrated repository social banner to .github/assets/social-preview.png, and removed the legacy demo/ folder (#17).