mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:54:40 +03:00
make more account config fields configurable through web interface
so users can change it themselves, instead of requiring an admin to change the settings.
This commit is contained in:
@ -438,6 +438,13 @@ func TestAccount(t *testing.T) {
|
||||
api.KeepRetiredPeriodsSave(ctx, time.Minute, time.Minute)
|
||||
api.KeepRetiredPeriodsSave(ctx, 0, 0) // Restore.
|
||||
|
||||
api.AutomaticJunkFlagsSave(ctx, true, "^(junk|spam)", "^(inbox|neutral|postmaster|dmarc|tlsrpt|rejects)", "")
|
||||
api.AutomaticJunkFlagsSave(ctx, false, "", "", "")
|
||||
|
||||
api.RejectsSave(ctx, "Rejects", true)
|
||||
api.RejectsSave(ctx, "Rejects", false)
|
||||
api.RejectsSave(ctx, "", false) // Restore.
|
||||
|
||||
api.Logout(ctx)
|
||||
tneedErrorCode(t, "server:error", func() { api.Logout(ctx) })
|
||||
}
|
||||
|
Reference in New Issue
Block a user