Lotus Notes / Domino stores mail in the Notes database. APIs are available for receiving documents (emails), reading field values (From, Subject) and disconnecting files.
APIs include
-LotusScript (VB option available in the Notes database)
-Java (inside or outside the database)
-C API (external)
- API available through the COM server
You can create a “scheduled agent” in the database (using LotusScript or Java) that can find documents created since the last run, find attachments and extract them. The agent must be signed with an identifier that has the appropriate permissions on the server, including those necessary to write to the file system and initiate any other processes.
External access to the database, you can use any API except LotusScript to enter the server / mail database and follow a similar process, for example. Extract files locally on the client or on a separate server. The C API and COM require the installation of the client notes, but Java applications can be configured to run through CORBA / DIIOP without a full installation.
For more information, see the Domino Designer help (or the IBM website for API C).
As for the “general way” for this, if you are accessing data in Notes and need to extract attachments, I think these APIs are your best option. If you plan to port the application to another mail system, consider unbinding the API routines through an “interface”, so you only need to add a new implementation of this interface to support the new mail system.
Matt vargish
source share