add email rotation regarding a limit
This commit is contained in:
@ -51,7 +51,8 @@ type RelayConfig struct {
|
||||
}
|
||||
|
||||
type DataConfig struct {
|
||||
Path string `yaml:"path" env:"FAKESMTP_DATA_PATH"`
|
||||
MaxEmail int `yaml:"maxEmail" env:"FAKESMTP_DATA_MAX_EMAIL"`
|
||||
Path string `yaml:"path" env:"FAKESMTP_DATA_PATH"`
|
||||
}
|
||||
|
||||
// NewFromFile retrieves the configuration from the given file
|
||||
@ -103,7 +104,8 @@ func NewDefault() *Config {
|
||||
Debug: true,
|
||||
},
|
||||
Data: DataConfig{
|
||||
Path: "fakesmtp.db",
|
||||
MaxEmail: 0,
|
||||
Path: "fakesmtp.db",
|
||||
},
|
||||
Relay: RelayConfig{
|
||||
Enabled: false,
|
||||
|
Reference in New Issue
Block a user