unbreak "mox localserve"

i broke it with 70d07c5459, so broken in v0.0.4, not in v0.0.3
This commit is contained in:
Mechiel Lukkien 2023-06-12 14:59:40 +02:00
parent d2f7d59fce
commit c561d7452b
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -170,6 +170,7 @@ testing purposes.
- Test upgrades.
- Run fuzzing tests for a while.
- Deploy to test environment. Test the update instructions.
- Test localserve.
- Generate a config with quickstart, check if it results in a working setup.
- Send and receive email through the major webmail providers, check headers.
- Send and receive email with imap4/smtp clients.

View file

@ -74,6 +74,8 @@ during those commands instead of during "data".
log := mlog.New("localserve")
mox.FilesImmediate = true
// Load config, creating a new one if needed.
if _, err := os.Stat(dir); err != nil && os.IsNotExist(err) {
err := writeLocalConfig(log, dir)
@ -115,7 +117,6 @@ during those commands instead of during "data".
// Tell queue it shouldn't be queuing/delivering.
queue.Localserve = true
mox.FilesImmediate = true
const mtastsdbRefresher = false
const skipForkExec = true
if err := start(mtastsdbRefresher, skipForkExec); err != nil {