diff --git a/App/EmailProfiler.Common/clsWorkEmail.vb b/App/EmailProfiler.Common/clsWorkEmail.vb index 6a3bc73..2879dd0 100644 --- a/App/EmailProfiler.Common/clsWorkEmail.vb +++ b/App/EmailProfiler.Common/clsWorkEmail.vb @@ -997,6 +997,16 @@ Public Class clsWorkEmail ' Verarbeite Embedded Attachments 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 oAttachmentCount -= 1 CleanUpFilePath(oEmailAttachment.DestFilePath)