This is an old revision of the document!
Every time VPOP3 adds a message to the Outgoing mail queue, it runs a script called outmessage.lua.
Scripts are stored as files in the VPOP3 directory in VPOP3 v6.6 and earlier, or managed through the Settings → Scripts page in VPOP3 v6.7 and later.
Please note - the only help we will give with Lua with our free support is to clarify the Lua interface (eg function signatures etc), we will not give help with Lua in general or help you to write or debug your own Lua scripts. We can help with that, but it will be on a chargeable basis depending on the complexity of the issue. Contact us for more information.
For every message which is to be sent VPOP3 calls a function in that script called NewMessage.
The function signature is: NewMessage(AuthenticatedSender, ReturnPath, CreationDate, Subject, SenderIPAddress, FileLength, Priority, Headers, Message, HoldSeconds, DeleteAfterSeconds)
YYYYMMDDHHMMSS
.The function returns a table of new settings. This can contain the following fields. If the field doesn't exist, then the value is not changed.