aboutsummaryrefslogtreecommitdiff
path: root/utils/email/types.go
blob: 497fad7d377e844cbcca9e30c673b625ac8fd3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package email

type ParsedEmail struct {
	MessageID      string
	FromAddress    string
	FromName       string
	ToAddresses    []string
	CcAddresses    []string
	BccAddresses   []string
	ReplyToAddress string
	ReturnPath     string
	Subject        string
	Snippet        string
	Size           int64
	Attachments    []ParsedAttachment
}

type ParsedAttachment struct {
	Filename    string
	ContentType string
	ContentID   string
	Size        int64
	IsInline    bool
}