mail queue
This commit is contained in:
@@ -15,6 +15,8 @@ const (
|
||||
botOptionCatchAll = "catch-all"
|
||||
botOptionDKIMSignature = "dkim.pub"
|
||||
botOptionDKIMPrivateKey = "dkim.pem"
|
||||
botOptionQueueItems = "queue:items"
|
||||
botOptionQueueTries = "queue:tries"
|
||||
)
|
||||
|
||||
type botSettings map[string]string
|
||||
@@ -58,6 +60,16 @@ func (s botSettings) DKIMPrivateKey() string {
|
||||
return s.Get(botOptionDKIMPrivateKey)
|
||||
}
|
||||
|
||||
// QueueItems option
|
||||
func (s botSettings) QueueItems() int {
|
||||
return utils.Int(s.Get(botOptionQueueItems))
|
||||
}
|
||||
|
||||
// QueueTries option
|
||||
func (s botSettings) QueueTries() int {
|
||||
return utils.Int(s.Get(botOptionQueueTries))
|
||||
}
|
||||
|
||||
func (b *Bot) initBotUsers() ([]string, error) {
|
||||
config := b.getBotSettings()
|
||||
cfgUsers := config.Users()
|
||||
|
||||
Reference in New Issue
Block a user