MyApplicationGlobix
This commit is contained in:
@@ -24,7 +24,7 @@ Public Class ClassFilehandle
|
||||
Public Function Decide_FileHandle(filename As String, handletype As String)
|
||||
Try
|
||||
If filename.EndsWith(".msg") Then
|
||||
My.Application.CurrMessageID = ""
|
||||
My.Application.Globix.CurrMessageID = ""
|
||||
Dim _msg As New Msg.Message(filename)
|
||||
If _msg.Attachments.Count > 0 Then
|
||||
Dim result As MsgBoxResult
|
||||
@@ -72,12 +72,12 @@ Public Class ClassFilehandle
|
||||
Dim msg As New Msg.Message(msgname)
|
||||
|
||||
If Not msg.InternetMessageId Is Nothing Then
|
||||
My.Application.CurrMessageID = msg.InternetMessageId
|
||||
My.Application.Globix.CurrMessageID = msg.InternetMessageId
|
||||
Else
|
||||
_LOGGER.Info(">> Email_Decay: Es konnte keine Message-ID gelesen werden. Eine GUID wird erzeugt!")
|
||||
Dim sGUID As String
|
||||
sGUID = System.Guid.NewGuid.ToString()
|
||||
My.Application.CurrMessageID = sGUID
|
||||
My.Application.Globix.CurrMessageID = sGUID
|
||||
End If
|
||||
|
||||
'Nur die MSGDatei ablegen
|
||||
@@ -90,7 +90,7 @@ Public Class ClassFilehandle
|
||||
_msgEXAtt.Attachments.Clear()
|
||||
_msgEXAtt.Save(tempfile)
|
||||
'Datei in Array zum Templöschen speichern
|
||||
My.Application.TEMP_FILES.Add(tempfile)
|
||||
My.Application.Globix.TEMP_FILES.Add(tempfile)
|
||||
|
||||
If Insert_GI_File(tempfile, msgonly) = True Then
|
||||
erfolgreich = True
|
||||
@@ -117,7 +117,7 @@ Public Class ClassFilehandle
|
||||
If tempfile <> String.Empty Then
|
||||
Dim oMessage = attachment.EmbeddedMessage
|
||||
oMessage.Save(tempfile)
|
||||
My.Application.TEMP_FILES.Add(tempfile)
|
||||
My.Application.Globix.TEMP_FILES.Add(tempfile)
|
||||
_LOGGER.Info(">> Attachment (" & i1 & "):" & tempfile)
|
||||
erfolgreich = Insert_GI_File(tempfile, ATT_EXTR)
|
||||
i1 += 1
|
||||
@@ -130,7 +130,7 @@ Public Class ClassFilehandle
|
||||
If tempfile <> "" Then
|
||||
attachment.Save(tempfile)
|
||||
'Datei in Array zum Templöschen speichern
|
||||
My.Application.TEMP_FILES.Add(tempfile)
|
||||
My.Application.Globix.TEMP_FILES.Add(tempfile)
|
||||
_LOGGER.Info(">> Attachment (" & i1 & "):" & tempfile)
|
||||
'nun der Insert des Anhanges
|
||||
erfolgreich = Insert_GI_File(tempfile, ATT_EXTR)
|
||||
@@ -229,7 +229,7 @@ Public Class ClassFilehandle
|
||||
' sFilename = sFilename.Replace("..", ".")
|
||||
'End If
|
||||
' alle nicht zulässigen Zeichen ersetzen
|
||||
sFilename = System.Text.RegularExpressions.Regex.Replace(sFilename, My.Application.GI_REGEX_CLEAN_FILENAME, REPLACEChar)
|
||||
sFilename = System.Text.RegularExpressions.Regex.Replace(sFilename, My.Application.Globix.REGEX_CLEAN_FILENAME, REPLACEChar)
|
||||
sFilename = System.Text.RegularExpressions.Regex.Replace(sFilename, "[\\/:*?""<>|\r\n]", "", System.Text.RegularExpressions.RegexOptions.Singleline)
|
||||
'Dim oCleanFileName As String = String.Join(REPLACEChar, sFilename.Split(Path.GetInvalidFileNameChars()))
|
||||
Dim oCleanFileName As New System.IO.FileInfo(System.Text.RegularExpressions.Regex.Replace(sFilename, String.Format("[{0}]", String.Join(String.Empty, Path.GetInvalidFileNameChars)), REPLACEChar))
|
||||
|
||||
Reference in New Issue
Block a user