Juan M Bellina 24.Jan.12 09:57 AM a Web browser Domino ServerAll ReleasesWindows 2003
I have a "After new mail has arrived" agent in mailbox.
The code is more or less the following:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument
If Not doc Is Nothing Then
' do some things .......
End If
The problem is that the agent runs BUT no doc is return from the collection. I have checked and the collection.Count return 0 (cero) documents.
I am wondering if the agent runs is because there is, at least, one document BUT why I can't get it ?