d--j / go-milter

Go library to write mail filters
BSD 2-Clause "Simplified" License
12 stars 3 forks source link

Support RFC3463 Enhanced Mail System Status Codes #10

Open d--j opened 1 year ago

d--j commented 1 year ago

Where the milter defines the SMTP response (e.g. https://pkg.go.dev/github.com/d--j/go-milter#RejectWithCodeAndReason ) we should also add support for enhanced status codes.

You can of course prepend the enhanced status code manually but since we might re-wrap the status text automatically we should also handle the enhanced status code while re-wrapping the text.