2020-01-22 10:41:30 +00:00
|
|
|
.Dd January 22, 2020
|
2016-07-22 19:36:46 +00:00
|
|
|
.Dt MDIRS 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mdirs
|
2018-02-01 18:46:35 +00:00
|
|
|
.Nd list maildir folders, recursively
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2020-01-22 10:41:30 +00:00
|
|
|
.Op Fl 0a
|
2016-07-22 19:36:46 +00:00
|
|
|
.Ar dirs\ ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2018-02-01 18:46:35 +00:00
|
|
|
recursively scans the given
|
|
|
|
.Ar dirs
|
|
|
|
for maildir
|
|
|
|
.Pq and maildir++
|
|
|
|
folders and prints them,
|
|
|
|
separated by newlines.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
|
|
|
To
|
|
|
|
.Nm ,
|
2018-02-01 18:46:35 +00:00
|
|
|
a maildir folder is a directory containing
|
2017-07-01 12:19:28 +00:00
|
|
|
the directories
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pa cur
|
2017-07-01 12:19:28 +00:00
|
|
|
and
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pa new .
|
2018-02-01 18:46:35 +00:00
|
|
|
By the maildir++ convention, nested maildir folder
|
|
|
|
names must begin with
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sq Li \&. .
|
2020-01-22 10:41:30 +00:00
|
|
|
.Pq This can be disabled using Fl a .
|
2018-02-01 18:46:35 +00:00
|
|
|
.Pp
|
2019-02-20 09:56:56 +00:00
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl 0
|
|
|
|
Print folders separated by a NUL character.
|
2020-01-22 10:41:30 +00:00
|
|
|
.It Fl a
|
|
|
|
Traverse into all subfolders, without considering the maildir++ name conventions.
|
2019-02-20 09:56:56 +00:00
|
|
|
.El
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Ex -std
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr find 1
|
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh LICENSE
|
|
|
|
.Nm
|
|
|
|
is in the public domain.
|
|
|
|
.Pp
|
|
|
|
To the extent possible under law,
|
|
|
|
the creator of this work
|
|
|
|
has waived all copyright and related or
|
|
|
|
neighboring rights to this work.
|
|
|
|
.Pp
|
|
|
|
.Lk http://creativecommons.org/publicdomain/zero/1.0/
|