From c561d7452bec31cb2e3832d60d482cceadedc44c Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 12 Jun 2023 14:59:40 +0200 Subject: [PATCH] unbreak "mox localserve" i broke it with 70d07c5459d8, so broken in v0.0.4, not in v0.0.3 --- develop.txt | 1 + localserve.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/develop.txt b/develop.txt index d004c45..a43bfcc 100644 --- a/develop.txt +++ b/develop.txt @@ -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. diff --git a/localserve.go b/localserve.go index 23892d1..4bffe5b 100644 --- a/localserve.go +++ b/localserve.go @@ -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 {