Initial commit
This commit is contained in:
27
internal/model/email.go
Normal file
27
internal/model/email.go
Normal file
@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"net/mail"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Email struct {
|
||||
ID int `storm:"id,increment"`
|
||||
HTML string
|
||||
Text string
|
||||
Headers map[string][]string
|
||||
From []*mail.Address
|
||||
To []*mail.Address
|
||||
Cc []*mail.Address
|
||||
Cci []*mail.Address
|
||||
Subject string
|
||||
SentAt time.Time
|
||||
Attachments []*Attachment
|
||||
Seen bool `storm:"index"`
|
||||
}
|
||||
|
||||
type Attachment struct {
|
||||
Name string
|
||||
ContentType string
|
||||
Data []byte
|
||||
}
|
Reference in New Issue
Block a user