Autoresponder scripting

In an autoresponder, you can create a Lua script by surrounding it with <lua> & </lua> tags, eg

This is an autoresponder with some Lua in it <lua>print 73</lua>

The Lua script is executed with the following global variables

After the script has been called, the Keep, CheckLog, Sender, ReplyTo, Subject, SubjectPrefix, AppendMsg, To, CopyTo and Attachments fields of the Autoresponder defined in the Lua global variable are read back into the current autoresponder definition. This means, for instance, that you can use Autoresponder.Keep = false; to change the autoresponder not to keep the original message.

If there are multiple <lua> segments in an autoresponder, they are processed from the top down, and the Autoresponder variable one sees is the affected by the previous ones.

The print output of the Lua script gets written to the autoresponse.

Autoresponder Definition

The Autoresponder global variable is a table with the following fields: