Lumail - The console email client

Lua primitives: has_body_part()

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

This function return TRUE if the current message has a MIME-part of the given content-type.

For example:

if ( has_body_part( "image/jpg" ) ) then
   msg( "This message contains an image" )


This function has been available since version 0.20.

See Also

See also count_body_parts, get_body_part, get_body_parts, on_get_body.