Lumail - The console email client

Lua primitives: selected_folders()

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

lumail allows you to select multiple folders to open at the same time.

The selected_folders() function allows you to determine which folders are currently selected - this might be an empty set.

For example:

-- Append the list of currently selected folders to a log-file
function debugy()
   sels = selected_folders();

   ff = "/tmp/log.lua", "a");

   for i,v in ipairs( sels ) do
      ff:write( "Selected folder " .. i .. " is " .. v .. "\n" );

keymap['maildir']['D'] = 'debugy()';


This function has been available since version 0.07.

See Also

See also add_selected_folder, clear_selected_folders, on_folder_selection, set_selected_folder, toggle_selected_folder.