MS Bugfixing mit Vektofeld Boolean
This commit is contained in:
@@ -129,7 +129,6 @@ Public Class clsWorker
|
||||
pollresult = _email.POP3_COLLECT()
|
||||
Case "IMAP"
|
||||
'pollresult = _emailIMAP.IMAP_COLLECT()
|
||||
' 09.04.19: Use S22.Imap instead of IndependentSoft ImapClient
|
||||
pollresult = _emailIMAP.FetchIMAPMessagesIsoft(MAIL_SERVER, MAIL_PORT, MAIL_USER, MAIL_USER_PW, MAIL_INBOX_NAME)
|
||||
End Select
|
||||
End If
|
||||
@@ -162,9 +161,28 @@ Public Class clsWorker
|
||||
For Each _file In TEMP_FILES
|
||||
System.IO.File.Delete(_file)
|
||||
Next
|
||||
Catch ex As Exception
|
||||
Try
|
||||
Dim oDiTempPath As New IO.DirectoryInfo(System.IO.Path.GetTempPath)
|
||||
Dim oaryFi As IO.FileInfo() = oDiTempPath.GetFiles()
|
||||
Dim ofi As IO.FileInfo
|
||||
|
||||
For Each fi In oaryFi
|
||||
Try
|
||||
fi.Delete()
|
||||
Catch ex As Exception
|
||||
Logger.Warn($"SWP1 - Could not delete the tempfile: {ex.Message}")
|
||||
End Try
|
||||
|
||||
Next
|
||||
Catch ex As Exception
|
||||
Logger.Warn($"SWP2 - Could not delete the tempfile: {ex.Message}")
|
||||
End Try
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
Logger.Warn($"SWP - Could not delete the tempfile from TEMP_FILES: {ex.Message}")
|
||||
End Try
|
||||
|
||||
Else
|
||||
Logger.Info("No active profiles")
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user