Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DbCfg struct { Type, Path string } )
Functions ¶
func CreateMail ¶
func CreateMail(raw *RawMailItem) (mail *Mail, recipients []MailRecipient, err error)
func LoadConfigs ¶
func LoadConfigs()
Types ¶
type Attachment ¶
type Attachment struct { Id int64 MailId int64 FileName string ContentType string Data string `xorm:"TEXT"` Received time.Time `xorm:"created"` ReceivedUnix int64 `xorm:"created"` }
func CreateAttachment ¶
func CreateAttachment(e *xorm.Session, attachment *Attachment) (*Attachment, error)
type EmbeddedFile ¶
type EmbeddedFile struct { Id int64 MailId int64 ContentId string ContentType string Data string `xorm:"TEXT"` Received time.Time `xorm:"created"` ReceivedUnix int64 `xorm:"created"` }
func CreateEmbeddedFile ¶
func CreateEmbeddedFile(e *xorm.Session, file *EmbeddedFile) (*EmbeddedFile, error)
func GetEmbeddedFile ¶
func GetEmbeddedFile(mailId int64, contentId string) (embeddedFile *EmbeddedFile, has bool, err error)
type Engine ¶
type Engine interface { Get(interface{}) (bool, error) Insert(...interface{}) (int64, error) Count(interface{}) (int64, error) }
Engine represents a XORM engine or session.
type Mail ¶
type MailRecipient ¶
func (*MailRecipient) String ¶
func (m *MailRecipient) String() string
type RawMailItem ¶
Click to show internal directories.
Click to hide internal directories.