mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-05 22:17:39 +03:00
storage/sql: Remove support for the _perdomain directives
Domain is now always required. See #172.
This commit is contained in:
parent
3217b872fa
commit
196755bc11
5 changed files with 93 additions and 97 deletions
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
imapsql "github.com/foxcpp/go-imap-sql"
|
||||
"github.com/foxcpp/maddy/config"
|
||||
"github.com/foxcpp/maddy/storage/sql"
|
||||
|
||||
|
@ -9,11 +8,10 @@ import (
|
|||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
func sqlFromCfgBlock(root, node *config.Node) (*imapsql.Backend, error) {
|
||||
func sqlFromCfgBlock(root, node *config.Node) (*sql.Storage, error) {
|
||||
// Global variables relevant for sql module.
|
||||
globals := config.NewMap(nil, root)
|
||||
globals.Bool("auth_perdomain", false, false, nil)
|
||||
globals.StringList("auth_domains", false, false, nil, nil)
|
||||
// None now...
|
||||
globals.AllowUnknown()
|
||||
_, err := globals.Process()
|
||||
if err != nil {
|
||||
|
@ -33,5 +31,5 @@ func sqlFromCfgBlock(root, node *config.Node) (*imapsql.Backend, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return mod.(*sql.Storage).Back, nil
|
||||
return mod.(*sql.Storage), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue