Saving attachments – agent

5 pts.
Tags:
Lotus Agents
Lotus development
Lotus email
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following