mdirs
— list
maildir folders, recursively
mdirs
recursively scans the given
dirs for maildir (and maildir++) folders and prints
them, separated by newlines.
To mdirs
, a maildir folder is a directory
containing the directories cur and
new. By the maildir++ convention, nested maildir
folder names must begin with ‘.
’.
(This can be disabled using -a
).
The options are as follows:
-0
- Print folders separated by a NUL character.
-a
- Traverse into all subfolders, without considering the maildir++ name
conventions.
The mdirs
utility exits 0 on
success, and >0 if an error occurs.