Convert from BoltDB to Maildir storage for emails

This commit is contained in:
2018-06-26 03:08:51 +01:00
parent d25ed6c1bd
commit a3c2508160
19 changed files with 869 additions and 175 deletions

View File

@@ -15,14 +15,14 @@ type Session struct {
}
func (s *Session) Send(from string, to []string, r io.Reader) error {
log.Printf("session=%d from=%s to=%s", s.ID, from, to)
log.Printf("session=%s from=%s to=%#v", s.ID, from, to)
// TODO: a chain of middlewares here
return s.Handler.ServeSMTP(from, to, r)
}
func (s *Session) Logout() error {
log.Printf("Ending session %d", s.ID)
log.Printf("Ending session %s", s.ID)
return nil
}