Hi,
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)
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 ?
Thanks,
Luca