Skip to content

Commit

Permalink
Add status callback into a Session's Data interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jun 14, 2022
1 parent 48b3194 commit 17b0610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type Session interface {
// Set currently processed message contents and send it.
//
// r must be consumed before Data returns.
Data(r io.Reader) error
Data(r io.Reader, statusCb func(status *smtp.SMTPError)) error
}

// LMTPSession is an add-on interface for Session. It can be implemented by
Expand Down

0 comments on commit 17b0610

Please sign in to comment.