Lumail - The console email client


Lua primitives: on_message_aborted()

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

If you define the function on_message_aborted it will be called when a message isn't sent.

After calling compose() or reply(), you will receive a prompt:

Send mail?  y/n/a>

Valid options are:

y

Send the mail.

n

Abort the sending.

a

Add an attachment.

The second option, "n", will cause this hook to be invoked, if it is defined.

Availability

This function has been available since version 0.16.

See Also

See also compose, on_edit_message, on_read_message, on_send_message, reply.