Hello,
I’ m a developer of the alfaproject.
I’ m testing the aspose.email v 2.7.0.0 to purchase it.
The target is develop a Windows Service that run in background and download messages stored in a Exchange folder.
This is the code of my application:
Private Sub DownloadAllEmail(ByVal FolderName As String, Optional ByVal mode As ExchangeListMessagesOptions = ExchangeListMessagesOptions.ListRecursive)
Try
Dim ExchangeConnection As ExchangeWebServiceClient
ExchangeConnection = New ExchangeWebServiceClient(Settings.ConnectionServer, Settings.ConnectionUsername, Settings.ConnectionPassword, Settings.ConnectionDomain)
Dim FolderURI As String = ExchangeConnection.MailboxInfo.InboxUri
Dim MessageCollection As ExchangeMessageInfoCollection = ExchangeConnection.ListMessages(FolderURI, mode)
For Each MessageInfo As ExchangeMessageInfo In MessageCollection
Dim StringMessageURI As String = MessageInfo.UniqueUri
Dim message As Aspose.Email.Mail.MailMessage = ExchangeConnection.FetchMessage(StringMessageURI)
Dim tempMessage As String = EmailFolder & "Message_" & message.Date.ToString("yyyyMMddhhmmss") & EmailExtension
message.Save(tempMessage, Aspose.Email.Mail.MessageFormat.Eml)
Next
ExchangeConnection.Dispose()
Catch ex As Exception
LogOperation("[DownloadAllEmail]: " & ex.Message, EventLogEntryType.Error)
End Try
End Sub
The execution time is over 10 minutes for retrive 135 message from a single folder ( Too much).
Often the connection with the server is dropped and this is a problem.
Are these behaviours due by trial version?
Thanks.