This is an old revision of the document!
(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) * attachmentname - the filename of the attachment in the message * sender - the email address of the sender * subject - the subject of the message * copy - whether the VPOP3 settings indicate that the attachment will be copied to the target directory (true) or moved to the target directory and deleted from the message (false) * targetdirectory - the target directory determined by the VPOP3 settings
The functions return a 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