Since moving to 16.10.0 the ListMessages(_query, MAX_EMAILS) causes an error. Removing the _query from ListMessages call works. This is monster issue.
protected const int MAX_EMAILS = 100;
ImapQueryBuilder imapBuilder = new ImapQueryBuilder();
imapBuilder.HasNoFlags(ImapMessageFlags.IsRead);
_query = imapBuilder.GetQuery();
_client.SelectFolder(ImapFolderInfo.InBox);
ImapMessageInfoCollection messageInfos = _client.ListMessages(_query, MAX_EMAILS);
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at Aspose.Email.Imap.ImapClient.#=qwplALxgBGK15MlOYclI4vQ==(#=qwWvLPYVwrM7kN6qcbd9jopfyxMrAteJdlN5ugt9xa$AqFawA4DbRx52$nDpqhMyv #=q8_2otbSlz1kyO2evp1I0Ig==, String #=qyOtI7m8dw9taUE00x5otFw==, MailQuery #=qRXIZZRiWXLNO7US0xlXiZQ==, Int32 #=qkY022C$oSfRVEQeK9nj7q4Um_1t8q0IN_uWElM4ckJA=, Int64 #=q$CpUYFgvU$9fxtPPWQngCu2ck2L7ijKeuycMOK8xZYo=) at Aspose.Email.Imap.ImapClient.#=qwplALxgBGK15MlOYclI4vQ==(#=qwWvLPYVwrM7kN6qcbd9jopfyxMrAteJdlN5ugt9xa$AqFawA4DbRx52$nDpqhMyv #=q8_2otbSlz1kyO2evp1I0Ig==, String #=qyOtI7m8dw9taUE00x5otFw==, MailQuery #=qRXIZZRiWXLNO7US0xlXiZQ==, Int32 #=qkY022C$oSfRVEQeK9nj7q4Um_1t8q0IN_uWElM4ckJA=) at Aspose.Email.Imap.ImapClient.ListMessages(MailQuery query, Int32 maxNumberOfMessages) at Hyland.xxxxxx.IMAPMailProcessor.download() in M:\TFS\DEV\Core\OnBase.NET\Applications\Hyland.xxxxxxx\IMAPMailProcessor.cs:line 45