1ae98699e7
- Blocklist or unsubscribe subscribers based on a bounce threshold - Add /bounces UI for viewing bounces and in the subscriber view - Add settings UI for managing bounce settings - Add support for scanning POP3 bounce mailboxes - Add a generic webhook for posting custom bounces at /webhooks/bounce - Add SES bounce webhook support at /webhooks/services/ses - Add Sendgrid bounce webhook support at /webhooks/services/sendgrid
29 lines
702 B
Go
29 lines
702 B
Go
package mailbox
|
|
|
|
import "time"
|
|
|
|
// Opt represents an e-mail POP/IMAP mailbox configuration.
|
|
type Opt struct {
|
|
// Host is the server's hostname.
|
|
Host string `json:"host"`
|
|
|
|
// Port is the server port.
|
|
Port int `json:"port"`
|
|
|
|
AuthProtocol string `json:"auth_protocol"`
|
|
|
|
// Username is the mail server login username.
|
|
Username string `json:"username"`
|
|
|
|
// Password is the mail server login password.
|
|
Password string `json:"password"`
|
|
|
|
// Folder is the name of the IMAP folder to scan for e-mails.
|
|
Folder string `json:"folder"`
|
|
|
|
// Optional TLS settings.
|
|
TLSEnabled bool `json:"tls_enabled"`
|
|
TLSSkipVerify bool `json:"tls_skip_verify"`
|
|
|
|
ScanInterval time.Duration `json:"scan_interval"`
|
|
}
|