Пример #1
0
func (tc *mailboxTestContext) MakeMailbox(name string, emails []uint64, nextID uint64) Mailbox {

	mb, err := newMailbox(mem.NewFolder(name), make(map[string]string))
	if err != nil {
		fmt.Println("Err constructing mailbox: ", err)
		return nil
	}

	return PrepareTestMailbox(mb, emails, nextID)
}
Пример #2
0
func (tc *memFolderTestContext) New() store.Folder {
	return mem.NewFolder("Test inbox")
}