COM API / IMAPFolders bug!?

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
Vandreaben
New user
New user
Posts: 5
Joined: 2006-07-27 10:53

COM API / IMAPFolders bug!?

Post by Vandreaben » 2006-07-29 11:09

Hello Martin

When I am using the COM-API and want to list all IMAP-folders for an account it seems that I only can list the INBOX folder and other root-folders. Nested folders like INBOX.Spam or INBOX.whatever can not be listed! I have tried the property functions:

Property Item(Index As Long) As IMAPFolder
Property ItemByDBID(DBID As Long) As IMAPFolder
Property ItemByName(Name As String) As IMAPFolder

None of the commands can list nested IMAP-folders, so I cant se the messages in the nested folders.

I am working om version 422-B199

Hope you can help me.

Lars

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-07-29 11:13

Hhmm. Have you tried the SubFolders property of the IMAPFolder object? You don't have a folder named INBOX.Spam. You have a folder named INBOX, and that folder has a sub folder named Spam.

Vandreaben
New user
New user
Posts: 5
Joined: 2006-07-27 10:53

Post by Vandreaben » 2006-07-29 18:16

Yes - of cource :oops:

Have not read the small chars - Sorry. My script is working fine now!

Thanks for the fast reply :D

Lars

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-07-29 20:35

It wasn't in the documentaiton before so you can't be blame for not knowing it.. Nice to hear it solved it. :)

Post Reply