addAttachments
Adds attachments to the staged list, preserving insertion order.
Each attachment is keyed by its EXTRA_SOURCE_URI if present, or by a deterministic fallback derived from Attachment.name and Attachment.mimeType. If a key is already present, its value is updated in place without changing its position.
Parameters
attachments
The attachments to stage.