Lumail - The console email client


Lua primitives: save()

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

This function will delete the currently selected message from its location, and write a copy to the fully-qualified maildir folder given as an argument.

For example:

--
-- Save the given message in the spam-folder.
--
function spam()
  save(os.getenv("HOME") .. "/Maildir/.spam/" );
end

--
-- Bind to "K"
--
keymap['index']['K']   = 'spam()'
keymap['message']['K'] = 'spam()'

Availability

This function has been available since version 0.07.

See Also

See also current_message, delete.