mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
for aliases, enable "public posting" by default when creating an alias
and explain in more detail what it means in the webadmin interface. will hopefully bring less confusion. for issue #244 by exander77, thanks for reporting
This commit is contained in:
4
main.go
4
main.go
@ -770,13 +770,13 @@ func ctlcmdConfigAliasPrint(ctl *ctl, address string) {
|
||||
|
||||
func cmdConfigAliasAdd(c *cmd) {
|
||||
c.params = "alias@domain rcpt1@domain ..."
|
||||
c.help = `Add new alias with one or more addresses.`
|
||||
c.help = `Add new alias with one or more addresses and public posting enabled.`
|
||||
args := c.Parse()
|
||||
if len(args) < 2 {
|
||||
c.Usage()
|
||||
}
|
||||
|
||||
alias := config.Alias{Addresses: args[1:]}
|
||||
alias := config.Alias{PostPublic: true, Addresses: args[1:]}
|
||||
|
||||
mustLoadConfig()
|
||||
ctlcmdConfigAliasAdd(xctl(), args[0], alias)
|
||||
|
Reference in New Issue
Block a user