mimeParser

package
v0.0.0-...-1deaa9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseContentType

func ParseContentType(childPart *enmime.Part) (*MessageContent, *AttachmentContent, bool)

Types

type AttachmentContent

type AttachmentContent struct {
	FileName    string
	ContentType string
	ContentId   string
	Data        []byte
}

type MessageContent

type MessageContent struct {
	Text string
	Html string
}

type MimePart

type MimePart struct {
	Content          MessageContent
	Attachments      []AttachmentContent
	EmbeddedContents []AttachmentContent
}

func MergeMimePart

func MergeMimePart(original, part *MimePart) *MimePart

func ParseEnmimeParts

func ParseEnmimeParts(part *enmime.Part) *MimePart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL