Lumail - The console email client


Lua primitives: maildir_prefix()

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.

To configure the prefix of your folders maildir_prefix must be called with the path to examine.

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" );

Multiple Prefixes

NOTE: From release 0.26 the prefix may contain multiple directories, separated by pipes:

maildir_prefix( "/home/skx/Maildir|/home/guest/Maildir|/home/skx/Imported-Mail/" );

Availability

This function has been available since version 0.07.

See Also

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