mirror of
https://github.com/emersion/go-smtp
synced 2026-07-02 03:22:37 +00:00
* 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
3 lines
89 B
Go
Executable File
3 lines
89 B
Go
Executable File
// Package backendutil provide utilities to implement SMTP backends.
|
|
package backendutil
|