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