Lumail - The console email client


Lua primitives: current_message()

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

When in index mode, set with global_mode, the user interface consists of a list of messages.

This function will retrieve the full path to the currently highlighted message.

When in message-mode, reading a single message, the function will return the message which is being displayed.

For example:

-- Show the message
msg( current_message() );

Availability

This function has been available since version 0.07.

See Also

See also body, count_lines, count_messages, delete, header, is_new, mark_read, mark_unread, save.