Lumail - The console email client


Lua primitives: is_new()

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 return true if the currently selected message is new, and false otherwise.

You may prefer to call this with a path, which will cause the test to be applied to the named mesage.

For example:

function on_read_message( path )
   if ( is_new( path ) ) then
      msg( "The current message is new" );
   else
      msg( "The current message has already been read" );
   end
end

Availability

This function has been available since version 0.07.

See Also

See also current_message, mark_read, mark_unread.