nigelrivett
IS-IT--Management
I have a requirement to get attachments from a mail account into a disk folder. I suspect the obvious way to do this would be to write an agent? But we don't have easy access to server development.
I seem to be able to connect to the server (I think) but not to the mail database.
In vb
Set o = CreateObject("lotus.NotesSession")
Call o.Initialize
MailServer = o.GETENVIRONMENTSTRING("MailServer", True)
Set dir = o.GETDBDIRECTORY(MailServer)
Set db = dir.GETFIRSTDATABASE(1247)
The GETFIRSTDATABASE fails with directory xxxxxx does not exist.
Is this something I am doing wrong or something that's not possible. I suspect I shouldn't have permission to do this but thought I would try.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
I seem to be able to connect to the server (I think) but not to the mail database.
In vb
Set o = CreateObject("lotus.NotesSession")
Call o.Initialize
MailServer = o.GETENVIRONMENTSTRING("MailServer", True)
Set dir = o.GETDBDIRECTORY(MailServer)
Set db = dir.GETFIRSTDATABASE(1247)
The GETFIRSTDATABASE fails with directory xxxxxx does not exist.
Is this something I am doing wrong or something that's not possible. I suspect I shouldn't have permission to do this but thought I would try.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.