mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 18:17:03 +00:00
Finishing up index.gob work
- Wrote more unit tests to make sure filestore behaves as expected - Renamed NewFileDataStore to DefaultFileDataStore, implemented a new NewFileDataStore for unit tests. - filestore now removes entire mailbox dir when last message is deleted
This commit is contained in:
@@ -39,7 +39,7 @@ func headerMatch(req *http.Request, name string, value string) bool {
|
||||
func NewContext(req *http.Request) (*Context, error) {
|
||||
vars := mux.Vars(req)
|
||||
sess, err := sessionStore.Get(req, "inbucket")
|
||||
ds := smtpd.NewFileDataStore()
|
||||
ds := smtpd.DefaultFileDataStore()
|
||||
ctx := &Context{
|
||||
Vars: vars,
|
||||
Session: sess,
|
||||
|
||||
Reference in New Issue
Block a user