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

Free Support Forum - aspose.com

BAD FETCH Invalid Fetch argument


we use aspose to download emails from an IMAP server in a custom process. In one of our installations, when the process tries to access the server to download emails we get, from time to time, the following error:

Aspose.Email.Imap.ImapException: 011 BAD FETCH Invalid Fetch argument
at e..(ImapReplyLineInfo[] , String )
at e..(ImapReplyLineInfo[] , String )
at e..( , String , Int32 )
at e..‘(Int32 , Int32 )
at Aspose.Email.Imap.ImapClient.ListMessages(String folderName, Boolean retrieveRecursively)
at ReusableAutomatProcesses.GenericFileImport.IMAPMailImport.ProcessIMAPFolder(ImapClient oClient, String strMailFolder, String strMailBoxSpecificTo)

It’s important to remark that sometimes the download succeeds, but not always.

The most relevant settings are
Port: 143
EnableSsl: false
SecurityMode: ImapSslSecurityMode.Implicit

Do you have an idea what could be the problem here ?



Hi Luca,

Thank you for using Aspose.Email.

Could you please share with us if you are using the latest version of Aspose.Email for .NET 4.8.0? I have tried fetching emails from my online account and it works very well. In order to investigate this issue and assist you further, please provide us with a test account credentials that can be used to reproduce this issue at our end. We’ll look into it and assist you accordingly.