Lumail - The console email client


Lua primitives: delete()

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

This function will delete the currently selected message. You may also call this function with a path, which will delete the message specified instead.

For example:

--
-- Delete the message via "D".
--
keymap['index']['D']   = 'delete()'
keymap['message']['D'] = 'delete()'

See also the trash() example.

Availability

This function has been available since version 0.07.

See Also

See also current_message, delete_maildir, on_delete_message, save.