Lumail - The console email client


Lua primitives: sent_mail()

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

The lumail client operates solely on Maildir folders. All folders beneath a given directory will be dynamically discovered at run-time.

When composing messages we need to save a copy of the outgoing mail, and to do that we need to know which folder is the one for "sent items".

For example:

--
-- This setting is used to specify the prefix for your maildir hierarchy.
--
-- Here we set ~/Maildir/.
--
maildir_prefix( os.getenv( "HOME" ) .. "/Maildir" );

--
-- The folder to use for storing sent-messages.
--
-- Here we set ~/Maildir/sent-mail.
--
sent_mail( maildir_prefix() .. "/sent-mail" );

Availability

This function has been available since version 0.07.

See Also

See also get_variables, ignored_folders, is_directory, is_maildir, maildir_prefix.