Lua primitives: selected_folders()
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.
-- -- Append the list of currently selected folders to a log-file -- function debugy() sels = selected_folders(); ff = io.open( "/tmp/log.lua", "a"); for i,v in ipairs( sels ) do ff:write( "Selected folder " .. i .. " is " .. v .. "\n" ); end ff:close(); end keymap['maildir']['D'] = 'debugy()';
This function has been available since version 0.07.