Documentation
¶
Overview ¶
Package mailhtml resolves attachment references without changing stored MIME data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeContentID ¶
NormalizeContentID removes MIME's optional outer brackets and whitespace. It deliberately preserves case and URI escapes in the stored identifier.
func RewriteAttachmentReferences ¶
func RewriteAttachmentReferences(input string, attachments []AttachmentReference) string
RewriteAttachmentReferences rewrites only src/href CID attributes. Unknown and ambiguous identifiers remain untouched. Exact matches precede a unique case-insensitive fallback for compatibility with older previews.
Types ¶
type AttachmentReference ¶
AttachmentReference identifies one stored attachment and its rendering URL.
Click to show internal directories.
Click to hide internal directories.