Lua primitives: is_new()
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.
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
This function has been available since version 0.07.