Lua primitives: index_offset()
When a folder has been opened this function will return the currently selected message offset.
The offset will range from 0 to count_messages().
-- Iterate over every message from the current position to the end of the list. function do_stuff() i = index_offset(); while( i < count_messages() ) jump_index_to( i ) -- do stuff i = i + 1 end end
This function has been available since version 0.18.