AE0011 NO [CLIENTBUG] folder is read-only

When trying to execute CommitDeletes() using the IMAP client I get an error.



“ImapException: AE0011 NO [CLIENTBUG] folder is read-only” & vbCrLf & " at #=qAJl0e4G5QBvyh8L9xl$az_bcuIhyojo$Z3en1nkp15qeGnAjtjjgcpCXe7NnJrlL.#=qhfWeNJpDUwAjekb8rjKK9g==(IAsyncResult #=qXdYz$EhFMtIsgwAldcAXRg==)" & vbCrLf & " at #=qxvmKwM3$$zOOvSJGciPu1yTxezkK_IhK11C1YNaFXgjgr0GnNOipaBaMI3U2hFii.#=qhfWeNJpDUwAjekb8rjKK9g==(IAsyncResult #=qXdYz$EhFMtIsgwAldcAXRg==)" & vbCrLf & " at #=qAJl0e4G5QBvyh8L9xl$az_bcuIhyojo$Z3en1nkp15qeGnAjtjjgcpCXe7NnJrlL.#=qhfWeNJpDUwAjekb8rjKK9g==()" & vbCrLf & " at #=qZE$2QaTCimvvVUYtPGr6m1gaVfRqpnkUwsD5ZPexFv_$8hNOycL7A6JidXO0OMwr.#=q9mYqbnfTed6jJHeTHkE0wQ==()" & vbCrLf & " at #=qxvmKwM3$$zOOvSJGciPu1yTxezkK_IhK11C1YNaFXgjgr0GnNOipaBaMI3U2hFii.#=qhfWeNJpDUwAjekb8rjKK9g==(IAsyncResult #=qXdYz$EhFMtIsgwAldcAXRg==)" & vbCrLf & " at #=qAJl0e4G5QBvyh8L9xl$az_bcuIhyojo$Z3en1nkp15qeGnAjtjjgcpCXe7NnJrlL.#=qhfWeNJpDUwAjekb8rjKK9g==()" & vbCrLf & " at Aspose.Email.Imap.ImapClient.EndCommitDeletes(IAsyncResult asyncResult)" & vbCrLf & " at Aspose.Email.Imap.ImapClient.Commit
Deletes(Int32 sleep)" & vbCrLf & " at Aspose.Email.Imap.ImapClient.CommitDeletes()" & vbCrLf & " at MuWaveEmailGatewayServiceUtilities.Mailbox.MoveMessages(MailMessageCollection messageList, String strMoveToFolderName) in C:\Development\VB\MuWaveEmailGatewayService\Trunk\MuWaveEmailGatewayServiceUtilities\Mailbox.vb:line 519"

Hi Joseph,

Thank you for writing to Aspose Support team.

We have tested this issue with the latest version of the API i.e. Aspose.Email for .NET 16.11.0 but were not able to observe the problem at our end. Could you please share with us if you are using the latest version of the API at your end? Also, please share with us the server information that you are using at your end for working with this functionality. Following is the sample code that we have used at our end.

Sample Code:

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

client.SelectFolder(ImapFolderInfo.InBox);

ImapMessageInfoCollection msgs = client.ListMessages();

Console.WriteLine(msgs.Count);

client.DeleteMessage(1);

client.CommitDeletes();

client.Dispose();

It is working fine now with the newest version. Thanks.

You are welcome.