Lua primitives: current_maildirs()
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( "?" ).
This function has been available since version 0.16.