Convert from BoltDB to Maildir storage for emails
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user