diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-01-20 11:31:03 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-25 21:55:17 +0100 |
commit | 1980744f7bf9e147abf649d37a2fa7dddd4e7254 (patch) | |
tree | dba9967e81d4c65c287dd5c9c1e26c5f269891b7 /worker/imap/configure.go | |
parent | 3452c9233f623c4049098b66911ae82fc14e119c (diff) | |
download | aerc-1980744f7bf9e147abf649d37a2fa7dddd4e7254.tar.gz |
idler: improve the imap idler
Rewrite the imap idler to make it more fault tolerant and prevent hangs
(and possibly short writes).
Fixes: https://todo.sr.ht/~rjarry/aerc/208
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Karel Balej <balejk@matfyz.cz>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/configure.go')
-rw-r--r-- | worker/imap/configure.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/imap/configure.go b/worker/imap/configure.go index 49464689..9d4a02de 100644 --- a/worker/imap/configure.go +++ b/worker/imap/configure.go @@ -166,7 +166,7 @@ func (w *IMAPWorker) handleConfigure(msg *types.Configure) error { if w.config.cacheEnabled { w.initCacheDb(msg.Config.Name) } - w.idler = newIdler(w.config, w.worker) + w.idler = newIdler(w.config, w.worker, w.executeIdle) w.observer = newObserver(w.config, w.worker) if name, ok := msg.Config.Params["folder-map"]; ok { |