Files
go-smtp/backendutil/backendutil.go
T
Marc HörskenandSimon Ser 79ab42336d Reintroduce updated backendutil.TransformBackend after 1a1363a (#47)
* Reintroduce backendutil.TransformBackend after 1a1363a5da

Considering the comments https://github.com/emersion/go-smtp/issues/22
I still consider this backend to be useful.

The required state to keep track of from and to addresses can be
handled by the implementer by using struct bound Transform methods.
The TransformReset func will allow that state to be cleared.

* Make it possible to specify transform handler functions per session

* Pass initiated Session type to Transform functions after login

* Make it optional to use Transform handler or individual functions

* Simplify TransformBackend to be just about transformations

* Add tests for transform backend based upon server tests

* Make sure that messages have not been queued in server tests
2019-06-01 17:35:14 +03:00

3 lines
89 B
Go
Executable File

// Package backendutil provide utilities to implement SMTP backends.
package backendutil