VPOP3.SaveAttachment

The Lua function 'VPOP3.SaveAttachment' saves an attachment from the message being processed to a file

This function is only available in the ProcessMessage function of the POP3CLT.LUA or SMTPSVR.LUA scripts.

It takes two parameters:

  1. number - attachment number to save
  2. string - file name to save the file as

The function returns one value:

  1. boolean true if the file was saved successfully, false otherwise