Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPListener ¶
type SMTPListener struct { // whitelist of sender domains to accept, nil means no restrictions DomainWhitelist []string // contains filtered or unexported fields }
Listener for requests sent via SMTP. The output generated when the request is handled will be sent back via SMTP as well.
func (SMTPListener) Listen ¶
func (l SMTPListener) Listen(incoming chan dumbdumb.Request)
TODO: try changing to pointer receiver and see what happens
type SMTPRequest ¶
func (SMTPRequest) GetPayload ¶
func (r SMTPRequest) GetPayload() string
func (SMTPRequest) SendOutput ¶
func (r SMTPRequest) SendOutput(output string) error
type SMTPResponse ¶
func (SMTPResponse) Send ¶
func (r SMTPResponse) Send() error
Click to show internal directories.
Click to hide internal directories.