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

Free Support Forum - aspose.com

ImapMessageInfo.Headers Collection Is Always Empty

Given the code snippet below the imapMessageInfo.Headers.Count() is always 0 for me. This is with 21.7.0. Should the Headers collection be populated with ListMessages? And, if not, how do I get all the headers for the messages in a folder?

ImapClient imapClient = new ImapClient();


foreach (ImapMessageInfo imapMessageInfo in imapClient.ListMessages())

Thank you for posting the query. I will answer you as soon as possible.

I reproduced the problem with the empty Headers collection on my side and I see the documentation and API reference do not clarify this. I logged the issue with ID EMAILNET-40347 in our tracking system. Our development team will investigate this case. I will inform you of any progress.

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