Lumail - The console email client

Lua primitives: show_attachments

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

When a message is displayed the user interface consists of:

The show_attachments boolean allows you to disable/enable the display of attachment names in the output. The view_inline_attachments boolean allows you to control whether the list of attachments include inline-parts too.

This might be useful if you receive a message with numerous attachments.

-- Should we show attachments when displaying a message?
function toggle_show_attachments ()
   if show_attachments == nil then
        show_attachments = false
    elseif show_attachments == true then
        show_attachments = false
    elseif show_attachments == false then
        show_attachments = true

-- Toggle the display of attachments in the message-display
keymap['message']['A'] = 'toggle_show_attachments()'


This function has been available since version 0.26.

See Also

See also display_filter, headers, view_inline_attachments, wrap_lines.