I've been working with the system and think it's great but I ran into a user request I'm having trouble filling.
I have been working a little with Lua, (never used it before), and writing a script in shell and passing it variable valuables through the Execute Program tab that is triggered under HTTP OnFileUploaded.
My issue is the Lua script offered here and anything called from shell work fine but can only notify a single person or list of people if the email is sent to a distribution list on the email server.
What I can't find are groups and members variables. What I'm getting asked to do is this; there are outside clients uploading into wftpserver and a notice is sent to internal staff, this is good. But, the internal staff will upload a file into the folder assigned to the outside clients and they would like an email notice sent to that client to let them know it is ready for download.
The outside clients are all in a common group, i.e. group ABC has members bob, jane and ted sharing a directory /home/abc and group XYZ has members mary, harry, and phil sharing a directory /home/xyz
When the internal staff uploads a file into /home/abc they want an email sent to bob, jane, and ted to let them know to come download the file. If the staff uploads a file into /home/xyz then they want a notice sent to mary, harry and phil to come download it.
I don't see variables to know what groups people are in for using Lua or shell scripts or perl. Is this possible to do with Lua or an external script?
Thanks for any help.