Lumail - The console email client

Lua primitives: get_body_parts()

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

This function will return a table containing the MIME types of each part of the message.

For example:

parts  = get_body_parts()

-- for each part
for index,type in ipairs( parts ) do
    msg( "MIME part " .. index .. " has type " .. type );


This function has been available since version 0.20.

See Also

See also count_body_parts, get_body_part, has_body_part, on_get_body.