mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
unbreak "mox localserve"
i broke it with 70d07c5459
, so broken in v0.0.4, not in v0.0.3
This commit is contained in:
parent
d2f7d59fce
commit
c561d7452b
2 changed files with 3 additions and 1 deletions
|
@ -170,6 +170,7 @@ testing purposes.
|
||||||
- Test upgrades.
|
- Test upgrades.
|
||||||
- Run fuzzing tests for a while.
|
- Run fuzzing tests for a while.
|
||||||
- Deploy to test environment. Test the update instructions.
|
- Deploy to test environment. Test the update instructions.
|
||||||
|
- Test localserve.
|
||||||
- Generate a config with quickstart, check if it results in a working setup.
|
- 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 through the major webmail providers, check headers.
|
||||||
- Send and receive email with imap4/smtp clients.
|
- Send and receive email with imap4/smtp clients.
|
||||||
|
|
|
@ -74,6 +74,8 @@ during those commands instead of during "data".
|
||||||
|
|
||||||
log := mlog.New("localserve")
|
log := mlog.New("localserve")
|
||||||
|
|
||||||
|
mox.FilesImmediate = true
|
||||||
|
|
||||||
// Load config, creating a new one if needed.
|
// Load config, creating a new one if needed.
|
||||||
if _, err := os.Stat(dir); err != nil && os.IsNotExist(err) {
|
if _, err := os.Stat(dir); err != nil && os.IsNotExist(err) {
|
||||||
err := writeLocalConfig(log, dir)
|
err := writeLocalConfig(log, dir)
|
||||||
|
@ -115,7 +117,6 @@ during those commands instead of during "data".
|
||||||
// Tell queue it shouldn't be queuing/delivering.
|
// Tell queue it shouldn't be queuing/delivering.
|
||||||
queue.Localserve = true
|
queue.Localserve = true
|
||||||
|
|
||||||
mox.FilesImmediate = true
|
|
||||||
const mtastsdbRefresher = false
|
const mtastsdbRefresher = false
|
||||||
const skipForkExec = true
|
const skipForkExec = true
|
||||||
if err := start(mtastsdbRefresher, skipForkExec); err != nil {
|
if err := start(mtastsdbRefresher, skipForkExec); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue