mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-20 02:06:28 +03:00
Add types.Mail
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package storage
|
||||
|
||||
import "time"
|
||||
import "github.com/neilalexander/yggmail/internal/storage/types"
|
||||
|
||||
type Storage interface {
|
||||
ConfigGet(key string) (string, error)
|
||||
@@ -19,7 +19,7 @@ type Storage interface {
|
||||
MailboxSubscribe(name string, subscribed bool) error
|
||||
|
||||
MailCreate(mailbox string, data []byte) (int, error)
|
||||
MailSelect(mailbox string, id int) (int, int, []byte, bool, bool, bool, bool, time.Time, error)
|
||||
MailSelect(mailbox string, id int) (int, *types.Mail, error)
|
||||
MailSearch(mailbox string) ([]uint32, error)
|
||||
MailUpdateFlags(mailbox string, id int, seen, answered, flagged, deleted bool) error
|
||||
MailDelete(mailbox, id string) error
|
||||
|
||||
Reference in New Issue
Block a user