aerc/worker
Julian Pidancet 150aa0f498 maildir: hide invalid folders
The maildir worker currently populates the list of mail folders by
listing all the filesystem subdirectories in the maildir directory.
Although there's no official specification for maildir subfolders,
they should all have cur/ new/ and tmp/ subdirectories to be valid.

This patch prevents directories that don't have those subdirectories
present on the filesystem from appearing in the account folder list.

This is useful for example to prevent ".notmuch" and ".notmuch/xapian"
from showing up in the folder list if using notmuch to index emails
while using aerc's maildir backend.

Signed-off-by: Julian Pidancet <julian.pidancet@oracle.com>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
2022-10-03 21:07:59 +02:00
..
handlers go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap imap,smtp: add XOAUTH2 support 2022-10-01 15:47:33 +02:00
lib lib: parse address header fields to utf-8 2022-09-29 16:51:53 +02:00
maildir maildir: hide invalid folders 2022-10-03 21:07:59 +02:00
mbox logging: substitute %w for %v 2022-10-02 18:56:26 +02:00
notmuch logging: substitute %w for %v 2022-10-02 18:56:26 +02:00
types logging: substitute %w for %v 2022-10-02 18:56:26 +02:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
worker_enabled.go mbox: implement an mbox backend worker 2022-07-14 23:14:45 +02:00