Compare commits
3 Commits
a64823ae5e
...
011b78472b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
011b78472b | ||
|
|
4f3d8e0c7d | ||
|
|
7b01ef788a |
@@ -168,7 +168,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
For Each oFile In oFileGroupFiles
|
For Each oFile In oFileGroupFiles
|
||||||
Dim oResult As ProcessFileResult = ProcessFile(oMessageId, oEmailDataBase, oZUGFeRDCount, oFile, oConnections, oArgs)
|
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")
|
_logger.Debug("Zugferd File found")
|
||||||
oMD5CheckSum = oResult.MD5Checksum
|
oMD5CheckSum = oResult.MD5Checksum
|
||||||
oZUGFeRDCount = oResult.ZugferdFileCount
|
oZUGFeRDCount = oResult.ZugferdFileCount
|
||||||
@@ -478,6 +478,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
|
|
||||||
' Since extraction went well, increase the amount of ZUGFeRD files
|
' Since extraction went well, increase the amount of ZUGFeRD files
|
||||||
pZugferdFiles += 1
|
pZugferdFiles += 1
|
||||||
|
_logger.Info("Zugferd file found. Increasing counter.")
|
||||||
|
|
||||||
' Extract all attachments with the extensions specified in `AllowedExtensions`.
|
' 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.
|
' If you need to extract and use embedded xml files, you need to filter out the zugferd-invoice.xml yourself.
|
||||||
|
|||||||
@@ -9,7 +9,11 @@ Namespace Mail
|
|||||||
|
|
||||||
Public ReadOnly Property Connected2Server As Boolean
|
Public ReadOnly Property Connected2Server As Boolean
|
||||||
Get
|
Get
|
||||||
Return MailSession.Session.Connected
|
If MailSession IsNot Nothing AndAlso MailSession.Session IsNot Nothing Then
|
||||||
|
Return MailSession.Session.Connected
|
||||||
|
Else
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user