This is the 'extraction.lua' script.
(Added in V6.17)
This script has one functions:
This functions is called if the attachment extraction is enabled in Settings → Attachment Processing → Extraction.
For every message VPOP3 loads the script file, then for each (non-virus) attachment it calls
Extract(attachmentname, sender, subject, copy, targetdirectory)
The functions return two values:
A simple example could be:
function Extract(attach, sender, subject, copyatt, attdir) print(attach,sender,subject,copyatt,attdir); -- log the details to lua.out return 2, "%base%\\_attach2"; --copy the attachment to the VPOP3\\_attach2 folder end