aerc/worker/maildir
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
..
container.go maildir: hide invalid folders 2022-10-03 21:07:59 +02:00
message.go charset: handle unknown charsets more user-friendly 2022-09-25 11:54:23 +02:00
search.go go: removed io/ioutil 2022-08-22 09:30:19 +02:00
worker.go logging: substitute %w for %v 2022-10-02 18:56:26 +02:00