2021-01-26 07:16:53 +01:00
|
|
|
package mstore
|
|
|
|
|
|
|
|
type Folder struct {
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
Subject string
|
2021-01-27 10:07:31 +01:00
|
|
|
Body string
|
2021-01-26 07:16:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type MStorer interface {
|
2021-01-27 10:07:31 +01:00
|
|
|
Folders() ([]*Folder, error)
|
2021-01-26 07:16:53 +01:00
|
|
|
Messages(folder Folder) ([]Message, error)
|
|
|
|
Move(message Message, folder Folder) error
|
|
|
|
Update(message Message) error
|
|
|
|
Add(message Message) error
|
|
|
|
}
|