This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
reference:outgoing_message_script [2015/02/10 10:21] – paul | reference:outgoing_message_script [2024/03/21 10:44] – [Messages to be sent] paul | ||
---|---|---|---|
Line 4: | Line 4: | ||
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. | 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. | + | See the [[Lua Scripting]] page for general details about VPOP3' |
=====Messages to be sent===== | =====Messages to be sent===== | ||
Line 23: | Line 23: | ||
* HoldSeconds - The current number of seconds the message will be held before being sent (0 = no time). | * HoldSeconds - The current number of seconds the message will be held before being sent (0 = no time). | ||
* DeleteAfterSeconds - The current number of seconds before the message will be deleted from the queue (0 = never). | * DeleteAfterSeconds - The current number of seconds before the message will be deleted from the queue (0 = never). | ||
+ | * HoldTimeFromSender - The ISO-8601 time to hold to as defined at message send time (eg by ' | ||
+ | * DeleteTimeFromSender - The ISO-8601 time to delete the message at as defined at message send time (added in v8.6) | ||
The function returns a table of new settings. This can contain the following fields. If the field doesn' | The function returns a table of new settings. This can contain the following fields. If the field doesn' | ||
Line 30: | Line 32: | ||
* HoldUntil - If this is set to a string like YYYYMMDDHHMMSS then the message is held until that time, otherwise it is held for the specified number of seconds. | * HoldUntil - If this is set to a string like YYYYMMDDHHMMSS then the message is held until that time, otherwise it is held for the specified number of seconds. | ||
* DeleteAfter - If this is set to ' | * DeleteAfter - If this is set to ' | ||
+ | * ReturnPath - (added in v8.6) - A new value for the ReturnPath (MAILFROM) of the message being sent | ||