Here is the proposed situation that I've been tasked with making work:
- Monitor an email inbox
- An email will arrive with attachment "thing.foo"
- We want to be able to strip the attachment and save to a folder on the network
- This will auto process through a system monitoring the folder
- We then want to be able to pickup an output file and return this to the sender of the original email where the .foo came from (lets assume this is always the same address and fixed)
OK so I'm fine up to the last point:
I will use a small VBA script in an instance of Outlook on a sever to pull out the thing.foo file, give it a unique file name (uniqueThing.foo), and drop it in the network folder. The process (which is nothing to do with me) will run its course and save out as something like "uniqueThing_processed.foo" (maybe move the original to an archive folder)... I'm ok to this point.
Now, what I need to do is to get this instance of Outlook to check periodically (say every 5 minutes) for a "********_processed.foo" file, attach that to an email and send it (then maybe move the file to the archive and append "_sent")