EmailProfile.Common: Korrektur, damit Email mit PDF-Datei und kaputten eingebetteten Anhängen abgelehnt und temp. Dateien gelöscht werden.
This commit is contained in:
parent
06cfc97ebd
commit
ec5c3999ab
@ -997,6 +997,16 @@ Public Class clsWorkEmail
|
|||||||
' Verarbeite Embedded Attachments
|
' Verarbeite Embedded Attachments
|
||||||
WorkEmbeddedAttachments(oEmailAttachment, oGdPicturePDF)
|
WorkEmbeddedAttachments(oEmailAttachment, oGdPicturePDF)
|
||||||
|
|
||||||
|
' Prüfen ob es ungültige Anhänge gibt.
|
||||||
|
Dim oEmbeddedAttachmentsNotValid As Boolean = EmailAttachments.
|
||||||
|
Where(Function(att) att.EmbeddedFiles.Count > 0).
|
||||||
|
Any(Function(emb) emb.EmbeddedFiles.Any(Function(ext) ext.IsAttachmentValid = False))
|
||||||
|
|
||||||
|
If oEmbeddedAttachmentsNotValid = True Then
|
||||||
|
MESSAGE_ERROR = True
|
||||||
|
Continue For
|
||||||
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
oAttachmentCount -= 1
|
oAttachmentCount -= 1
|
||||||
CleanUpFilePath(oEmailAttachment.DestFilePath)
|
CleanUpFilePath(oEmailAttachment.DestFilePath)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user