Lumail - The console email client


Lua primitives: save_attachment()

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

This function will save the specified attachment to disk.

For example:

int count = count_attachments();
int i = 1

while( i <= count ) do
  save_attachment( i, "/tmp/attachment." .. i );
  i = i + 1
end

Availability

This function has been available since version 0.10.

See Also

See also attachment, attachment_colour, attachments, count_attachments.