Lumail - The console email client

Lua primitives: body()

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

When in message-mode, or index-mode, the body() function may be used to retrieve the parsed body from the currently selected message.

For example:

text = body();

If you wish you may point the function at a saved message:

text = body( os.getenv( "HOME" ) .. "/Maildir/Drafts/cur/1.2.3.txt" );


This function has been available since version 0.18.

See Also

See also all_headers, current_message, header.