Lumail - The console email client


Lua primitives: count_attachments()

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

This function will return an integer count of the number of attachments in the currently specified message.

For example:

msg("There are " .. count_attachments() .. " attachments");

Availability

This function has been available since version 0.10.

See Also

See also attachment, attachment_colour, attachments, save_attachment.