diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-06-21 22:13:04 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-22 10:55:25 +0200 |
commit | 626d118a31d6cb36900e67b93d535434aea75cb3 (patch) | |
tree | 445b473f62e1d629b94fb4bdc347803d352aa2a6 /worker/imap/observer.go | |
parent | 822bd3620a456fefcdb828f2768c0677e4442f05 (diff) | |
download | aerc-626d118a31d6cb36900e67b93d535434aea75cb3.tar.gz |
imap: add folder-map
Add the folder-map functionality to the imap backend. If the folder-map
config option is specified, the folder-map worker middleware is used.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/observer.go')
-rw-r--r-- | worker/imap/observer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/observer.go b/worker/imap/observer.go index 1c481bed..7367ff58 100644 --- a/worker/imap/observer.go +++ b/worker/imap/observer.go @@ -18,14 +18,14 @@ type observer struct { sync.Mutex config imapConfig client *imapClient - worker *types.Worker + worker types.WorkerInteractor done chan struct{} autoReconnect bool retries int running bool } -func newObserver(cfg imapConfig, w *types.Worker) *observer { +func newObserver(cfg imapConfig, w types.WorkerInteractor) *observer { return &observer{config: cfg, worker: w, done: make(chan struct{})} } |