aerc/worker
wagner riffel 55ae3d2cab maildir: fix data race in maildir worker
Fix a data race due dirInfo pointer being read in the main goroutine
by NewMessageStore and written in the anonymous goroutine launched in
Worker.getDirectoryInfo.

To address the issue raised in https://todo.sr.ht/~rjarry/aerc/16, we
use readdir(3) once, parse and cache its results, this replaces
go-maildir library Dir.Flags based  stat(3) and filepath.Glob
causing the issue when N (emails) is large.

Signed-off-by: wagner riffel <w@104d.net>
2022-03-07 10:01:53 +01:00
..
handlers go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap imap: start reconnect when initial connect fails 2022-02-20 22:04:16 +01:00
lib maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
maildir maildir: fix data race in maildir worker 2022-03-07 10:01:53 +01:00
notmuch maildir,notmuch: pass in-memory message to callback 2022-01-20 15:44:46 +01:00
types threading: implement on-the-fly message threading 2022-02-24 13:00:12 +01:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
worker_enabled.go go.mod: change base git url 2021-11-05 10:21:45 +01:00