3 Commits

Author SHA1 Message Date
Jonathan Jenne
011b78472b einmal mit profis 2023-10-12 13:29:51 +02:00
Jonathan Jenne
4f3d8e0c7d Fix zugferd count in process files 2023-10-12 13:06:10 +02:00
Jonathan Jenne
7b01ef788a check for missing mailsession 2023-10-11 15:35:04 +02:00
2 changed files with 7 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ Public Class ImportZUGFeRDFiles
For Each oFile In oFileGroupFiles
Dim oResult As ProcessFileResult = ProcessFile(oMessageId, oEmailDataBase, oZUGFeRDCount, oFile, oConnections, oArgs)
If oResult.ZugferdFileFound = False Then
If oResult.ZugferdFileFound = True Then
_logger.Debug("Zugferd File found")
oMD5CheckSum = oResult.MD5Checksum
oZUGFeRDCount = oResult.ZugferdFileCount
@@ -478,6 +478,7 @@ Public Class ImportZUGFeRDFiles
' Since extraction went well, increase the amount of ZUGFeRD files
pZugferdFiles += 1
_logger.Info("Zugferd file found. Increasing counter.")
' Extract all attachments with the extensions specified in `AllowedExtensions`.
' If you need to extract and use embedded xml files, you need to filter out the zugferd-invoice.xml yourself.

View File

@@ -9,7 +9,11 @@ Namespace Mail
Public ReadOnly Property Connected2Server As Boolean
Get
If MailSession IsNot Nothing AndAlso MailSession.Session IsNot Nothing Then
Return MailSession.Session.Connected
Else
Return False
End If
End Get
End Property