5 pts.
 Saving attachments – agent
Hi, I'm trying to create an agent which saves any attachments from incoming emails from a specified address automatically to a network drive. I'm not a notes dev so I'm having a hell of a time working out where to start. Any help would be really appreciated

Software/Hardware used:
ASKED: August 14, 2008  2:40 AM
UPDATED: August 19, 2008  11:25 PM

Answer Wiki:
First of all you need a database on a Domino server where the code and a scheduled agent will reside. (I would not use an email database as the design could to be replaced by Admin). 1. Create a script library (where all the code will reside), e.g. libAttach, with a sub, e.g. ProcessEmail. 2. Create an agent and schedule it to run on a daily basis (or whatever you want, e.g. every hour). 3. Under (Options) enter use "libAttach", under Initialize enter call ProcessEmail. 4. Use an id with the proper authorisation to sign the agent (from now on you will not have to alter it anymore). 5. Modify the code in the script library to open the email database and get all documents in a standard view. 6. When each document has been processed, store a 'flag' to indicate that it has been processed, e.g. a field name not used for anything else such as FlagAttachmentStored, so that they can be skipped next time the agent runs. An experienced developer could probably write the code in a couple of hours, it could take someone else several days or even weeks.
Last Wiki Answer Submitted:  August 19, 2008  11:25 pm  by  premosm   15 pts.
All Answer Wiki Contributors:  premosm   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _