This shows you the differences between two versions of the page.
Previous revision | |||
— | reference:scheduling_management_scripts [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Scheduling Management Scripts====== | ||
+ | VPOP3 runs a script called scheduler.lua in the background, it will periodically call functions in this script at approximately 1 minute, 5 minute, 1 hour and 1 day intervals. These times are only approximate so should not be relied upon for timing. | ||
+ | |||
+ | The script is loaded when VPOP3 loads and is kept loaded permanently, | ||
+ | |||
+ | You should try not to run long-running scripts in the frequent (1 min/5 min) functions as that will slow down other behaviour of VPOP3. E.g. if you want to go through all users' folders looking for certain messages to delete them, then it may be best to do that hourly or daily, but if you are wanting to do something when a particular message arrives in a particular user's Inbox, performing that every 1 or 5 minutes may be OK. | ||
+ | |||
+ | =====Functions===== | ||
+ | |||
+ | ====Start==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Unload==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Reload==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Sched1Min==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Sched5Min==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Sched1Hour==== | ||
+ | VPOP3 calls the '' | ||
+ | |||
+ | ====Sched1Day==== | ||
+ | VPOP3 calls the '' | ||
+ | |||