aerc/worker/notmuch
Julian Pidancet c31a5fc33d notmuch: simplify DirectoryInfo emitting logic
Refactor the code emitting DirectoryInfo messages. Reduce function
call indirections by retiring gatherDirectoryInfo(), buildDirInfo() and
emitDirectoryInfo(), and replacing them with getDirectoryInfo()
(aligning the code with what is done in the maildir worker by the same
occasion).

Also merge queryFromName(), which no longer needs to be called from
different places, in handleOpenDirectory().

Signed-off-by: Julian Pidancet <julian.pidancet@oracle.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
2022-10-27 21:45:31 +02:00
..
lib notmuch: add IndexFile and DeleteMessage methods to notmuch.DB 2022-10-27 21:39:41 +02:00
eventhandlers.go notmuch: simplify DirectoryInfo emitting logic 2022-10-27 21:45:31 +02:00
events.go lint: remove unused structs and functions (unused) 2022-08-04 21:57:48 +02:00
message.go notmuch: add maildir support 2022-10-27 21:45:24 +02:00
worker.go notmuch: simplify DirectoryInfo emitting logic 2022-10-27 21:45:31 +02:00