Extremely WIP, but now messages appear in the evolution list pane
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user