How to access a folder in the notesdirectory?

I am writing an agent that checks on every e-mail database, I get transverse file using getdatabase and getnextdatabase, However getnextdatabase will go through all files in the notes directory, How can I access files only in the e-mail folder or any specific folder?

Thanks in advance.

Subject: Try this technote:

Here is a technote that goes through all mail databases:Title: Using LotusScript to generate a report with mail database information

Doc #: 1268625

URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21268625

Here is a another related technote:

Title: Using a LotusScript agent to search all mail databases for a particular string

Doc #: 1259256

URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21259256

Subject: Thank you

Rene

Thank you, Both solution canbe used though I will be likely to implement solution 2. We have different server for different users and I think going through the list in the e-mail folder directly will be faster than using the NAB.