How Do I check for Unprocessed/unread
documents in a Mail Database?
I'm running an agent on the server and
this agent is suppose to read each and every user's mail boxes "Sent" folder mails and send it to the respective receipients.
I'm using Lotus Script in my Agent to do this. The problem is that i'm unable
to find a "Flag" to mark in all the documents that the agent has run on :(
I can't use :
"Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments"
as my db is the database which is running the agent, hence this option is off... :(
I'm using db and db1..
"Set db = directory.getfirstdatabase (DATABASE)
While Not (db Is Nothing)
If db.title = B Then
Set db1 = s.getdatabase("XYZ", db.filePath)
Set view = db1.GetView("($Sent)")
Set doc = view.GetFirstDocument....."
As you can see db1 holds the value of the respective mail box databases names. As you can see db1 uses the "getdatabase" method
hence I can't use the 'UnprocessedDocument"Property( as this is not one the getdatabase property.
Can anyone suggest another way of doing this...Pls help