types

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	ContentType string `json:"contentType"`
	// ContentDisposition preserves MIME parsing detail for compatibility
	// projections without changing OwlMail's native JSON attachment shape.
	ContentDisposition string `json:"-"`
	FileName           string `json:"fileName"`
	GeneratedFileName  string `json:"generatedFileName"`
	ContentID          string `json:"contentId"`
	Size               int64  `json:"size"`
	Transformed        bool   `json:"-"`
	ContentSHA256      string `json:"-"`
	Storage            string `json:"-"`
}

Attachment represents an email attachment

type Email

type Email struct {
	RunID         string                 `json:"run_id,omitempty"`
	ID            string                 `json:"id"`
	Time          time.Time              `json:"time"`
	Read          bool                   `json:"read"`
	Subject       string                 `json:"subject"`
	From          []*mail.Address        `json:"from"`
	To            []*mail.Address        `json:"to"`
	CC            []*mail.Address        `json:"cc"`
	BCC           []*mail.Address        `json:"bcc"`
	CalculatedBCC []*mail.Address        `json:"calculatedBcc"`
	Text          string                 `json:"text"`
	HTML          string                 `json:"html"`
	Attachments   []*Attachment          `json:"attachments"`
	Envelope      *Envelope              `json:"envelope"`
	Source        string                 `json:"source"`
	Size          int64                  `json:"size"`
	SizeHuman     string                 `json:"sizeHuman"`
	Headers       map[string]interface{} `json:"headers"`
	// AllHeaders retains the complete parsed header set for compatibility
	// projections without changing OwlMail's native JSON response.
	AllHeaders map[string]interface{} `json:"-"`
}

Email represents a parsed email message

type Envelope

type Envelope struct {
	From          string   `json:"from"`
	To            []string `json:"to"`
	CC            []string `json:"cc"`
	BCC           []string `json:"bcc"`
	CalculatedBCC []string `json:"calculatedBcc"`
	Host          string   `json:"host"`
	RemoteAddress string   `json:"remoteAddress"`
	// SMTPTransaction distinguishes a captured SMTP envelope (where an empty
	// From is a meaningful null reverse-path) from a best-effort envelope
	// reconstructed from an EML after restart.
	SMTPTransaction bool `json:"-"`
}

Envelope represents SMTP envelope information

Jump to

Keyboard shortcuts

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