clsWorkEmail
This commit is contained in:
parent
f150041a33
commit
12e9538968
@ -101,11 +101,11 @@ Public Class clsWorkEmail
|
|||||||
'TODO: Move all of these CURRENT_MAIL vars into a business object of type mail container
|
'TODO: Move all of these CURRENT_MAIL vars into a business object of type mail container
|
||||||
_CurrentMail = New MailContainer(pMailMessage, poUID)
|
_CurrentMail = New MailContainer(pMailMessage, poUID)
|
||||||
|
|
||||||
_Logger.Info($"Working on email from: {_CurrentMail.SenderAddress} - Subject: {_CurrentMail.SubjectOriginal} - MessageID: {_CurrentMail.MessageId}")
|
_Logger.Debug($"Working on email from: {_CurrentMail.SenderAddress}...Subject: {pMailMessage.Subject}")
|
||||||
CURRENT_MAIL_BODY_ALL = String.Empty
|
CURRENT_MAIL_BODY_ALL = ""
|
||||||
CURRENT_MAIL_BODY_ANSWER1 = String.Empty
|
CURRENT_MAIL_BODY_ANSWER1 = ""
|
||||||
CURRENT_MAIL_BODY_Substr2 = String.Empty
|
CURRENT_MAIL_BODY_Substr2 = ""
|
||||||
CURRENT_MAIL_SUBJECT = String.Empty
|
CURRENT_MAIL_SUBJECT = pMailMessage.Subject.ToUpper.EscapeForSQL()
|
||||||
|
|
||||||
CURRENT_MAIL_UID = poUID
|
CURRENT_MAIL_UID = poUID
|
||||||
|
|
||||||
@ -209,7 +209,9 @@ Public Class clsWorkEmail
|
|||||||
_Logger.Debug("CommonEmail-Process-Sniffer")
|
_Logger.Debug("CommonEmail-Process-Sniffer")
|
||||||
|
|
||||||
' Allgemeine Verarbeitung der EMail
|
' Allgemeine Verarbeitung der EMail
|
||||||
If CommonEmail_IN(_CurrentMail) = False Then
|
Dim oCommonEmailResult = CommonEmail_IN(_CurrentMail)
|
||||||
|
|
||||||
|
If oCommonEmailResult = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -538,7 +540,7 @@ Public Class clsWorkEmail
|
|||||||
Try
|
Try
|
||||||
|
|
||||||
_Logger.Info(String.Format("PM-related message found....[{0}]", pCurrentMail.Mail.Subject))
|
_Logger.Info(String.Format("PM-related message found....[{0}]", pCurrentMail.Mail.Subject))
|
||||||
|
_Logger.Debug(String.Format("PM-related message found....[{0}]", pCurrentMail.Mail.Subject))
|
||||||
Dim oExpression = "PROCESS_NAME = 'ProcessManager'"
|
Dim oExpression = "PROCESS_NAME = 'ProcessManager'"
|
||||||
'Filter the rows using Select() method of DataTable
|
'Filter the rows using Select() method of DataTable
|
||||||
Dim TEMP_PROCESS_PROFILE_DT As DataTable = DT_POLL_PROCESS
|
Dim TEMP_PROCESS_PROFILE_DT As DataTable = DT_POLL_PROCESS
|
||||||
@ -1002,6 +1004,7 @@ Public Class clsWorkEmail
|
|||||||
Any(Function(emb) emb.EmbeddedFiles.Any(Function(ext) ext.IsAttachmentValid = False))
|
Any(Function(emb) emb.EmbeddedFiles.Any(Function(ext) ext.IsAttachmentValid = False))
|
||||||
|
|
||||||
If oEmbeddedAttachmentsNotValid = True Then
|
If oEmbeddedAttachmentsNotValid = True Then
|
||||||
|
|
||||||
MESSAGE_ERROR = True
|
MESSAGE_ERROR = True
|
||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
@ -1014,7 +1017,7 @@ Public Class clsWorkEmail
|
|||||||
oEmailAttachment.ErrorCodeValue = ErrorCode.NormalFileAttachmentCorrupt
|
oEmailAttachment.ErrorCodeValue = ErrorCode.NormalFileAttachmentCorrupt
|
||||||
oEmailAttachment.ErrorCodeComment = "PDF Structure corrupt"
|
oEmailAttachment.ErrorCodeComment = "PDF Structure corrupt"
|
||||||
oEmailAttachment.IsAttachmentValid = False
|
oEmailAttachment.IsAttachmentValid = False
|
||||||
|
MESSAGE_ERROR = True
|
||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user