Initial commit

This commit is contained in:
2020-04-17 17:53:01 +02:00
commit 423843c2d7
49 changed files with 9669 additions and 0 deletions

27
internal/model/email.go Normal file
View 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
}