synology_apm_repo.sdk.units.content.saas_mail module

Content Layer — Mail’s .eml reassembly. Pure bytes -> bytes splicing of the X-ABL-ID MIME tree (FORMAT-SPEC.md: X-ABL-ID MIME-tree mechanism); the tree-navigation and object-fetching logic that calls this lives in units/saas/mail.py.

synology_apm_repo.sdk.units.content.saas_mail.build_eml(skel_bytes, fragments_by_id)

Reassembles one .eml from a skeleton’s raw bytes and its fragments, keyed by fragment_id and matched by X-ABL-ID header value, never order. A part with no X-ABL-ID is left untouched; an unmatched fragment is simply unused — the skeleton is the sole authority on which parts were ever extracted. A message/rfc822 attachment is one opaque fragment, never recursively re-expanded.