We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The ListMessages function of the ImapClient return no folders

Hi,

I updated the Email assembly to 5.5.0.0 version.
With the new version I’ve a problem with the ListMessages function of the ImapClient object that now returns always an empty collection.
All works fine with the 5.3.0.0 version.

Is a bug or in the new version the folders are recovered in a different way?

Thanks,
Alessandro

Hi Alessandro,

Thank you for writing to Aspose support team.

We
have tested this issue at our end and the following sample code returns
the proper number of messages from the mailbox. Could you please share
the server information to which you are connecting? We have used our
Exchange server to retrieve the list of messages from the inbox and it
works fine.

Sample Code:

ImapClient client = new ImapClient(“[exchange.domain.com](http://exchange.domain.com/)”, “username”, “password”);

client.SelectFolder(ImapFolderInfo.InBox);

Console.WriteLine(client.ListMessages().Count);

Sorry,

I gave you the wrong information. The ListMessages function works well, it is the ListFolders funcion that with the new version (5.5.0) always returns empty folders.
I don’t know if the problem is related to this:

IMAP: Error reading messages with parameter retrieveRecursively set to True

The mailbox is always the same and therefore contains folders with zero elements.

Thanks,
Alessandro

Hi Alessandro,

Thank you for explaining the real issue. We are
able to reproduce it at our end and shall soon log it for investigation
by our product team. We shall update you here via this thread once done.

Hi Alessandro,


We have logged this issue as regression issue with id EMAILNET-34877 in our bug tracking system. Our product team will investigate it further and we shall share the feedback here with you once there is some information available about this problem.

The issues you have found earlier (filed as EMAILNET-34877) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.