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
.emlfrom a skeleton’s raw bytes and its fragments, keyed byfragment_idand matched byX-ABL-IDheader value, never order. A part with noX-ABL-IDis left untouched; an unmatched fragment is simply unused — the skeleton is the sole authority on which parts were ever extracted. Amessage/rfc822attachment is one opaque fragment, never recursively re-expanded.