1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 02:27:03 +00:00

Basic retention scanner w/ unit tests

Not wired into anything yet!
This commit is contained in:
James Hillyerd
2012-10-25 22:15:53 -07:00
parent b665612190
commit d8d0d1b4ff
3 changed files with 178 additions and 110 deletions

View File

@@ -17,6 +17,7 @@ import (
type DataStore interface {
MailboxFor(emailAddress string) (Mailbox, error)
AllMailboxes() ([]Mailbox, error)
}
type Mailbox interface {
@@ -95,6 +96,11 @@ func (ds *FileDataStore) MailboxFor(emailAddress string) (Mailbox, error) {
return &FileMailbox{store: ds, name: name, dirName: dir, path: path}, nil
}
// AllMailboxes returns a slice with all Mailboxes
func (ds *FileDataStore) AllMailboxes() ([]Mailbox, error) {
return nil, nil
}
// A Mailbox manages the mail for a specific user and correlates to a particular
// directory on disk.
type FileMailbox struct {