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"`
ReplyTo []*mail.Address `json:"replyTo,omitempty"`
RelayedAt *time.Time `json:"relayedAt,omitempty"`
RelayedTo []string `json:"relayedTo,omitempty"`
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
Click to show internal directories.
Click to hide internal directories.