Get receiving email a step closer with a modified go-smtp
This commit is contained in:
4
vendor/github.com/emersion/go-smtp/backend.go
generated
vendored
4
vendor/github.com/emersion/go-smtp/backend.go
generated
vendored
@@ -8,6 +8,10 @@ import (
|
||||
type Backend interface {
|
||||
// Authenticate a user.
|
||||
Login(username, password string) (User, error)
|
||||
|
||||
// Called if the client attempts to send mail without logging in first.
|
||||
// Respond with smtp.AuthRequiredErr if you don't want to support this.
|
||||
AnonymousLogin() (User, error)
|
||||
}
|
||||
|
||||
// An authenticated user.
|
||||
|
Reference in New Issue
Block a user