Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:46
· 22 commits to master since this release
db399bd

Added

  • Structured Received: Header Scoping (email.sublime-syntax):
    • Added dedicated RFC 5321 §4.4 / RFC 5322 §3.6.7 grammar contexts (received-header-value, received-hop-host, received-with-protocol, received-hop-id, received-header-comment, received-tls-tokens) for granular highlighting of MTA trace headers (#27).
    • Scoped hop clause keywords (from, by, via, with, id, for, tls) with whitespace-bounded lookarounds so hyphenated/dotted hostnames containing those words (e.g., mail-from-relay.example.com) are never falsely split (#27).
    • Added granular scoping for relay domains (entity.name.domain.eml), mail transmission protocols (SMTP, ESMTP, ESMTPS, ESMTPSA, LMTP, UTF8SMTP, etc. as constant.language.protocol.eml), queue/transaction IDs (constant.other.id.eml), and TLS version/cipher tokens (constant.language.tls.eml) (#27).
    • Highlighted relay IPv4/IPv6 addresses and TLS key-value parameters (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384, bits=256/256, helo=...) inside parenthesized Received: comments while guarding against unclosed comments leaking past the header (#27).
    • Preserved trailing ; <date-time> timestamp highlighting (constant.numeric.date-time.eml) so Local/UTC hover tooltips work across every hop (#27).
  • RFC 5321 [IPv6:...] Address Literal Support (email.sublime-syntax):
    • Extended ip-addresses to recognize bracketed [IPv6:<address>] literals (e.g., [IPv6:2001:db8::1]) commonly emitted by Gmail, Postfix, Exim, and Sendmail (#27).
  • Multi-Hop Received: Syntax Tests & Fixture:
    • Added tests/syntax_test_received_header.eml covering hop clauses, relay IPs inside comments, [IPv6:...] literals, TLS metadata, Exchange dotted IDs, folded multi-line headers, Received-SPF: isolation, negative keyword boundary checks, and unclosed comment recovery (#27).
    • Added tests/fixtures/received_headers.eml for visual inspection and bat verification (#27).

Changed

  • Task Backlog Tracking (TODO.md):
    • Moved "Structured Received: Header Scoping" to Completed (completing all Milestone 1 grammar modernization tasks) and marked "Extended Syntax Tests" as completed (#27).