fix handling embedded msg files without extension (looking at u, outlook)
This commit is contained in:
@@ -104,7 +104,20 @@ Public Class ClassFilehandle
|
||||
Else
|
||||
attachment_name = attachment.LongFileName
|
||||
End If
|
||||
If Not attachment_name.Contains("inline") Then
|
||||
If attachment.EmbeddedMessage IsNot Nothing Then
|
||||
attachment_name = ClassFilehandle.InvalidCharacters(attachment_name)
|
||||
tempfile = Path.Combine(Path.GetTempPath, attachment_name & ".msg")
|
||||
tempfile = ClassFilehandle.Versionierung_Datei(tempfile)
|
||||
|
||||
If tempfile <> String.Empty Then
|
||||
Dim oMessage = attachment.EmbeddedMessage
|
||||
oMessage.Save(tempfile)
|
||||
TEMP_FILES.Add(tempfile)
|
||||
LOGGER.Info(">> Attachment (" & i1 & "):" & tempfile)
|
||||
erfolgreich = Insert_GI_File(tempfile, ATT_EXTR)
|
||||
i1 += 1
|
||||
End If
|
||||
ElseIf Not attachment_name.Contains("inline") Then
|
||||
'Sonderzeichen entfernen
|
||||
attachment_name = ClassFilehandle.InvalidCharacters(attachment_name)
|
||||
tempfile = Path.Combine(Path.GetTempPath, attachment_name)
|
||||
|
||||
Reference in New Issue
Block a user