Lumail - The console email client


Lua primitives: select_maildir()

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.

The list of maildirs may be scrolled up/down via scroll_maildir_up()/scroll_maildir_down(). You can also jump to a given position via jump_maildir_to().

The function select_maildir() allows you to jump to a given maildir in the list via a literal path-comparision.

For example:

select_maildir( "/home/skx/Maildir/.steve.org.uk" );

The return value is true if the selection succeeded, false otherwise.

Availability

This function has been available since version 0.07.

See Also

See also current_maildir, jump_maildir_to, maildir_offset, maildirs_matching, scroll_maildir_down, scroll_maildir_to, scroll_maildir_up.