Lumail - The console email client


Lua primitives: current_maildirs()

NOTE: Lumail-legacy has been superseded by Lumail 2.x, which has a wholly unified Lua API.

When in maildir mode, set with global_mode, the user interface consists of a list of maildir folders.

This function will return a table containing the names of the currently-visible Maildir folders.

For example you could discover all maildirs by running:

-- Show all Maildirs, saving the currnet limit.
saved = maildir_limit();
maildir_limit( "all" );

-- Get all maildirs
all = current_maildirs();

-- reset the previous limit
maildir_limit( saved );

This would be roughly the same result as maildirs_matching( "?" ).

Availability

This function has been available since version 0.16.

See Also

See also count_maildirs, current_maildir, maildirs_matching.