Lumail - The console email client

Lua primitives: on_read_message()

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

If you define the function on_read_message it will be called when a message is displayed.

i.e. If you've opened a folder, then opened a message, then the hook will be called.

For example:

function on_read_message( path )
   msg( "Now reading: " .. path );
   if ( is_new() ) then


This function has been available since version 0.07.

See Also

See also display_filter, mail_filter, on_complete, on_exit, on_idle, on_key, wrap_lines.