Compare commits

...

2 Commits

Author SHA1 Message Date
Jonathan Jenne
b4cf442c89 Version 2.11.4.0 2023-11-10 14:23:47 +01:00
Jonathan Jenne
3ab200b5b2 fix history entry when no attachments are found 2023-11-10 14:23:21 +01:00
2 changed files with 21 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyCompany("")> <Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("DigitalData.EMLProfiler")> <Assembly: AssemblyProduct("DigitalData.EMLProfiler")>
<Assembly: AssemblyCopyright("Copyright © 2023")> <Assembly: AssemblyCopyright("Copyright © 2023")>
<Assembly: AssemblyTrademark("2.11.3.0")> <Assembly: AssemblyTrademark("2.11.4.0")>
<Assembly: ComVisible(False)> <Assembly: ComVisible(False)>
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' übernehmen, indem Sie "*" eingeben: ' übernehmen, indem Sie "*" eingeben:
' <Assembly: AssemblyVersion("1.0.*")> ' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("2.11.3.0")> <Assembly: AssemblyVersion("2.11.4.0")>
<Assembly: AssemblyFileVersion("2.11.3.0")> <Assembly: AssemblyFileVersion("2.11.4.0")>

View File

@@ -174,21 +174,28 @@ Public Class clsWorkEmail
Return PROCESS_MANAGER_IN(CurrentMail) Return PROCESS_MANAGER_IN(CurrentMail)
Else Else
_Logger.Debug("CommonEmail-Process-Sniffer") _Logger.Debug("CommonEmail-Process-Sniffer")
If COMMON_EMAIL_IN(CurrentMail) = True Then
InsertHistoryEntry(CurrentMail) Dim oCommonEmailResult = COMMON_EMAIL_IN(CurrentMail)
If CURRENT_ATTMT_COUNT = 0 Then
_Logger.Info("### Mail contained no Attachments!! ###") If oCommonEmailResult = False Then
Dim oBody = EmailStrings.EMAIL_NO_FERDS
If AddToEmailQueueMSSQL(CurrentMail.MessageId, oBody, "No Attachments", _EmailAccountID) = True Then
CURRENT_ImapObject.DeleteMessageByUID(poUID)
End If
End If
Return True
Else
Return False Return False
End If End If
If CURRENT_ATTMT_COUNT = 0 Then
_Logger.Info("### Mail contained no Attachments!! ###")
Dim oBody = EmailStrings.EMAIL_NO_FERDS
If AddToEmailQueueMSSQL(CurrentMail.MessageId, oBody, "No Attachments", _EmailAccountID) = True Then
CURRENT_ImapObject.DeleteMessageByUID(poUID)
End If
InsertHistoryEntryWithStatus(CurrentMail, "REJECTED", "No Attachments")
Else
InsertHistoryEntry(CurrentMail)
End If
Return True
End If End If
Catch ex As Exception Catch ex As Exception