Extremely WIP, but now messages appear in the evolution list pane

This commit is contained in:
2018-03-09 03:20:22 +00:00
parent b661b4a978
commit 3c52b23723
10 changed files with 211 additions and 75 deletions

View File

@@ -19,12 +19,17 @@ type Interface interface {
SetTLS([]byte, []byte) error
AccountInterface
MailboxInterface
MessageInterface
SpoolInterface
io.Closer
}
func IsNotFound(err error) bool {
return err.Error() == "not found" // Magic hardcoded value in storm
}
func New(ctx context.Context, filename string) (Interface, error) {
db, err := storm.Open(filename, storm.BoltOptions(0600, &bolt.Options{}))
if err != nil {