Lumail - The console email client


Lua primitives: create_maildir()

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

This function will create a new maildir folder.

For example:

sent = os.getenv( "HOME" ) .. "/Maildir/.sent" ;

if ( ! is_maildir( sent ) ) then
   create_maildir( sent )
end

Creating a Maildir involves creating four directories:

NOTE: The parent directory must exist already, prior to calling create_maildir otherwise this function will fail and return false.

Availability

This function has been available since version 0.17.

See Also

See also delete_maildir, is_maildir.