mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
27 lines
915 B
Go
27 lines
915 B
Go
package webui
|
|
|
|
type jsonServerConfig struct {
|
|
Version string `json:"version"`
|
|
BuildDate string `json:"build-date"`
|
|
POP3Listener string `json:"pop3-listener"`
|
|
WebListener string `json:"web-listener"`
|
|
SMTPConfig jsonSMTPConfig `json:"smtp-config"`
|
|
StorageConfig jsonStorageConfig `json:"storage-config"`
|
|
}
|
|
|
|
type jsonSMTPConfig struct {
|
|
Addr string `json:"addr"`
|
|
DefaultAccept bool `json:"default-accept"`
|
|
AcceptDomains []string `json:"accept-domains"`
|
|
RejectDomains []string `json:"reject-domains"`
|
|
DefaultStore bool `json:"default-store"`
|
|
StoreDomains []string `json:"store-domains"`
|
|
DiscardDomains []string `json:"discard-domains"`
|
|
}
|
|
|
|
type jsonStorageConfig struct {
|
|
MailboxMsgCap int `json:"mailbox-msg-cap"`
|
|
StoreType string `json:"store-type"`
|
|
RetentionPeriod string `json:"retention-period"`
|
|
}
|