Ungekürztes Subject verwenden

This commit is contained in:
PitzM 2025-10-01 10:21:31 +02:00
parent d397c9ec95
commit 7d04f4c3b5

View File

@ -101,7 +101,7 @@ 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.Subject} - MessageID: {_CurrentMail.MessageId}") _Logger.Info($"Working on email from: {_CurrentMail.SenderAddress} - Subject: {_CurrentMail.SubjectOriginal} - MessageID: {_CurrentMail.MessageId}")
CURRENT_MAIL_BODY_ALL = String.Empty CURRENT_MAIL_BODY_ALL = String.Empty
CURRENT_MAIL_BODY_ANSWER1 = String.Empty CURRENT_MAIL_BODY_ANSWER1 = String.Empty
CURRENT_MAIL_BODY_Substr2 = String.Empty CURRENT_MAIL_BODY_Substr2 = String.Empty
@ -134,11 +134,11 @@ Public Class clsWorkEmail
' '
'End If 'End If
If IsNothing(_CurrentMail.Subject) Then If IsNothing(_CurrentMail.SubjectOriginal) Then
CURRENT_MAIL_SUBJECT = String.Empty CURRENT_MAIL_SUBJECT = String.Empty
_Logger.Warn("Subject was nothing!") _Logger.Warn("Subject was nothing!")
Else Else
CURRENT_MAIL_SUBJECT = _CurrentMail.Subject.ToUpper.EscapeForSQL() CURRENT_MAIL_SUBJECT = _CurrentMail.SubjectOriginal.ToUpper.EscapeForSQL()
_Logger.Debug("Fixed Subject: [{0}]", CURRENT_MAIL_SUBJECT) _Logger.Debug("Fixed Subject: [{0}]", CURRENT_MAIL_SUBJECT)
End If End If