Compare commits
7 Commits
Database_S
...
3a26343083
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a26343083 | ||
|
|
1e732a036a | ||
|
|
41165a470d | ||
|
|
8128987be4 | ||
|
|
6ebd3b82b6 | ||
|
|
d18ebfe912 | ||
|
|
b614b3f140 |
@@ -10,7 +10,7 @@
|
|||||||
<AssemblyName>DigitalData.Modules.Interfaces</AssemblyName>
|
<AssemblyName>DigitalData.Modules.Interfaces</AssemblyName>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<MyType>Windows</MyType>
|
<MyType>Windows</MyType>
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
|||||||
@@ -8,4 +8,4 @@
|
|||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
|
||||||
</startup>
|
</startup>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
|||||||
@@ -83,13 +83,14 @@ Public Class EmailFunctions
|
|||||||
Dim oFinalBodyText = String.Format(EmailStrings.EMAIL_WRAPPING_TEXT.Replace(EmailStrings.constNAME_ZUGFERD_PORTAL, NamePortal), oCompleteBodyText)
|
Dim oFinalBodyText = String.Format(EmailStrings.EMAIL_WRAPPING_TEXT.Replace(EmailStrings.constNAME_ZUGFERD_PORTAL, NamePortal), oCompleteBodyText)
|
||||||
|
|
||||||
Dim oEmailAddress = pEmailData.From
|
Dim oEmailAddress = pEmailData.From
|
||||||
Dim oAttachment = pEmailData.Attachment
|
Dim oAttachmentPath = pEmailData.Attachment
|
||||||
If oAttachment <> String.Empty Then
|
If oAttachmentPath <> String.Empty Then
|
||||||
_logger.Debug($"Attachment_String [{oAttachment}]!")
|
_logger.Debug($"Attachment_String [{oAttachmentPath}]!")
|
||||||
If IO.File.Exists(oAttachment) = False Then
|
If IO.File.Exists(oAttachmentPath) = False Then
|
||||||
_logger.Info($"Attachment.File [{oAttachment}] is not existing!!!")
|
_logger.Info($"Attachment.File [{oAttachmentPath}] is not existing!!!")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Dim oAttachmentPathEscaped = oAttachmentPath.Replace("'", "''")
|
||||||
|
|
||||||
If IsNothing(oEmailAddress) OrElse String.IsNullOrWhiteSpace(oEmailAddress) Then
|
If IsNothing(oEmailAddress) OrElse String.IsNullOrWhiteSpace(oEmailAddress) Then
|
||||||
_logger.Warn("Could not find email-address for MessageId {0}", MessageId)
|
_logger.Warn("Could not find email-address for MessageId {0}", MessageId)
|
||||||
@@ -133,7 +134,7 @@ Public Class EmailFunctions
|
|||||||
,'{oFinalBodyText}'
|
,'{oFinalBodyText}'
|
||||||
,'{SourceProcedure}'
|
,'{SourceProcedure}'
|
||||||
,'{oCreatedWho}'
|
,'{oCreatedWho}'
|
||||||
,'{oAttachment}')"
|
,'{oAttachmentPathEscaped}')"
|
||||||
_mssql.ExecuteNonQuery(oInsert)
|
_mssql.ExecuteNonQuery(oInsert)
|
||||||
Else
|
Else
|
||||||
'If oDTResult.Rows.Count = 0 Then
|
'If oDTResult.Rows.Count = 0 Then
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<AssemblyName>DigitalData.Modules.Jobs</AssemblyName>
|
<AssemblyName>DigitalData.Modules.Jobs</AssemblyName>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<MyType>Empty</MyType>
|
<MyType>Empty</MyType>
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ Imports System.Runtime.InteropServices
|
|||||||
<Assembly: AssemblyDescription("")>
|
<Assembly: AssemblyDescription("")>
|
||||||
<Assembly: AssemblyCompany("Digital Data")>
|
<Assembly: AssemblyCompany("Digital Data")>
|
||||||
<Assembly: AssemblyProduct("Modules.Jobs")>
|
<Assembly: AssemblyProduct("Modules.Jobs")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2021")>
|
<Assembly: AssemblyCopyright("Copyright © 2022")>
|
||||||
<Assembly: AssemblyTrademark("")>
|
<Assembly: AssemblyTrademark("1.8.7.0")>
|
||||||
|
|
||||||
<Assembly: ComVisible(False)>
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
@@ -30,5 +30,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.8.6.0")>
|
<Assembly: AssemblyVersion("1.8.7.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.8.6.0")>
|
<Assembly: AssemblyFileVersion("1.8.7.0")>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Imports System.Runtime.InteropServices
|
|||||||
<Assembly: AssemblyCompany("")>
|
<Assembly: AssemblyCompany("")>
|
||||||
<Assembly: AssemblyProduct("Language")>
|
<Assembly: AssemblyProduct("Language")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2022")>
|
<Assembly: AssemblyCopyright("Copyright © 2022")>
|
||||||
<Assembly: AssemblyTrademark("")>
|
<Assembly: AssemblyTrademark("1.6.1.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("1.6.0.0")>
|
<Assembly: AssemblyVersion("1.6.1.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.6.0.0")>
|
<Assembly: AssemblyFileVersion("1.6.1.0")>
|
||||||
|
|||||||
@@ -12,4 +12,15 @@ Public Module StringEx
|
|||||||
If String.IsNullOrEmpty(pString) Then Return pString
|
If String.IsNullOrEmpty(pString) Then Return pString
|
||||||
Return pString.Substring(0, Math.Min(pLength, pString.Length))
|
Return pString.Substring(0, Math.Min(pLength, pString.Length))
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Replaces single quotes in text for SQL Commands.
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="pString">The string</param>
|
||||||
|
''' <returns>The escaped string.</returns>
|
||||||
|
<Extension()>
|
||||||
|
Public Function EscapeForSQL(pString As String) As String
|
||||||
|
If String.IsNullOrEmpty(pString) Then Return pString
|
||||||
|
Return pString.Replace("'", "''")
|
||||||
|
End Function
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -113,17 +113,21 @@ Public Class Limilab
|
|||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
Public Function IMAPGetMessageIDs_AllMails() As List(Of Long)
|
Public Function IMAPGetMessageIDs_AllMails() As List(Of Long)
|
||||||
Dim oListuids As New List(Of Long)
|
|
||||||
Logger.Debug("Starting IMAPGetMessageIDs ...")
|
Logger.Debug("Starting IMAPGetMessageIDs ...")
|
||||||
If Initialized = False Then
|
If Initialized = False Then
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
Try
|
Try
|
||||||
Dim oConnect As Boolean = ImapConnect()
|
Dim oConnectionSuccessful As Boolean = ImapConnect()
|
||||||
|
Dim oListuids As List(Of Long)
|
||||||
|
|
||||||
If oConnect = True Then
|
If oConnectionSuccessful = True Then
|
||||||
|
Logger.Debug("Checking for new messages..")
|
||||||
oListuids = ImapGetMessageIDs_All()
|
oListuids = ImapGetMessageIDs_All()
|
||||||
CURR_ListUIDs = oListuids
|
CURR_ListUIDs = oListuids
|
||||||
|
Else
|
||||||
|
Logger.Warn("Connection was NOT successful. Returning Nothing.")
|
||||||
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
Return oListuids
|
Return oListuids
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -223,10 +227,13 @@ Public Class Limilab
|
|||||||
Private Function ImapGetMessageIDs_All() As List(Of Long)
|
Private Function ImapGetMessageIDs_All() As List(Of Long)
|
||||||
Dim oListuids As New List(Of Long)
|
Dim oListuids As New List(Of Long)
|
||||||
Try
|
Try
|
||||||
|
Logger.Debug("Opening Inbox..")
|
||||||
CurrentImapObject.SelectInbox()
|
CurrentImapObject.SelectInbox()
|
||||||
|
|
||||||
|
Logger.Debug("Searching messages..")
|
||||||
oListuids = CurrentImapObject.Search(Flag.All)
|
oListuids = CurrentImapObject.Search(Flag.All)
|
||||||
|
|
||||||
|
Logger.Debug("[{0}] messages found.", oListuids.Count)
|
||||||
Return oListuids
|
Return oListuids
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Logger.Error(ex)
|
Logger.Error(ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user