Lumail - The console email client


Lua primitives: delete_maildir()

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

This function will delete an existing Maildir folder, if it is empty.

For example:

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

if ( is_maildir( sent ) ) then
   delete_maildir( sent )
end

Deleting a Maildir involves removing four directories:

If any of those directories cannot be deleted, perhaps because they contain files, then the function will return false.

true will be returned on success.

Availability

This function has been available since version 0.24.

See Also

See also create_maildir, is_maildir.