add catch-all mailbox, closes #25
This commit is contained in:
@@ -17,6 +17,7 @@ const (
|
||||
commandStop = "stop"
|
||||
commandSend = "send"
|
||||
commandDKIM = "dkim"
|
||||
commandCatchAll = botOptionCatchAll
|
||||
commandUsers = botOptionUsers
|
||||
commandDelete = "delete"
|
||||
commandMailboxes = "mailboxes"
|
||||
@@ -144,6 +145,11 @@ func (b *Bot) initCommands() commandList {
|
||||
description: "Get DKIM signature",
|
||||
allowed: b.allowAdmin,
|
||||
},
|
||||
{
|
||||
key: commandCatchAll,
|
||||
description: "Get or set catch-all mailbox",
|
||||
allowed: b.allowAdmin,
|
||||
},
|
||||
{
|
||||
key: commandMailboxes,
|
||||
description: "Show the list of all mailboxes",
|
||||
@@ -184,6 +190,8 @@ func (b *Bot) handleCommand(ctx context.Context, evt *event.Event, commandSlice
|
||||
b.runDKIM(ctx, commandSlice)
|
||||
case commandUsers:
|
||||
b.runUsers(ctx, commandSlice)
|
||||
case commandCatchAll:
|
||||
b.runCatchAll(ctx, commandSlice)
|
||||
case commandDelete:
|
||||
b.runDelete(ctx, commandSlice)
|
||||
case commandMailboxes:
|
||||
|
||||
Reference in New Issue
Block a user