Initial project's source code check-in.

This commit is contained in:
ptsurbeleu 2011-07-13 16:07:32 -07:00
commit b03b0b373f
4573 changed files with 981205 additions and 0 deletions

View file

@ -0,0 +1,41 @@
' Copyright (c) 2011, Outercurve Foundation.
' All rights reserved.
'
' Redistribution and use in source and binary forms, with or without modification,
' are permitted provided that the following conditions are met:
'
' - Redistributions of source code must retain the above copyright notice, this
' list of conditions and the following disclaimer.
'
' - Redistributions in binary form must reproduce the above copyright notice,
' this list of conditions and the following disclaimer in the documentation
' and/or other materials provided with the distribution.
'
' - Neither the name of the Outercurve Foundation nor the names of its
' contributors may be used to endorse or promote products derived from this
' software without specific prior written permission.
'
' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
' ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
' (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
' LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
' ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
' (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
' SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Friend Enum MD_DELFLAGS
MDUSERDLL_DUSERLISTDB = 1
MDUSERDLL_DAUTORESPDB = 2
MDUSERDLL_DFWDDB = 4
MDUSERDLL_DMAILFORMATDB = 8
MDUSERDLL_DWEBACCESSDB = 16
MDUSERDLL_DMULTIPOPDB = 32
MDUSERDLL_DALIASDB = 64
MDUSERDLL_DREMOVEDIR = 128
MDUSERDLL_DGUARDIANDB = 256
MDUSERDLL_DDELETEALL = 511
End Enum 'MD_DELFLAGS

View file

@ -0,0 +1,59 @@
' Copyright (c) 2011, Outercurve Foundation.
' All rights reserved.
'
' Redistribution and use in source and binary forms, with or without modification,
' are permitted provided that the following conditions are met:
'
' - Redistributions of source code must retain the above copyright notice, this
' list of conditions and the following disclaimer.
'
' - Redistributions in binary form must reproduce the above copyright notice,
' this list of conditions and the following disclaimer in the documentation
' and/or other materials provided with the distribution.
'
' - Neither the name of the Outercurve Foundation nor the names of its
' contributors may be used to endorse or promote products derived from this
' software without specific prior written permission.
'
' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
' ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
' (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
' LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
' ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
' (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
' SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Friend Enum MD_ERROR
MDDLLERR_NOTFOUND = -1
MDDLLERR_NOERROR = 0
MDDLLERR_MBXHASDOMAIN = 1324
MDDLLERR_BASE = 1324
MDDLLERR_USEREXISTS = 1325
MDDLLERR_INVALIDFULLNAME = 1326
MDDLLERR_INVALIDMAILBOX = 1327
MDDLLERR_INVALIDMAILDIR = 1328
MDDLLERR_INVALIDPASSWORD = 1329
MDDLLERR_INVALIDFWD = 1330
MDDLLERR_POSTMASTER = 1331
MDDLLERR_LOGONINUSE = 1332
MDDLLERR_INVALIDCNTQUOTA = 1333
MDDLLERR_INVALIDDISKQUOTA = 1334
MDDLLERR_CANTCREATEMAILDIR = 1336
MDDLLERR_CANTCREATEFILEDIR = 1337
MDDLLERR_TOOMANYACCOUNTS = 1338
MDDLLERR_INVALIDRECORD = 1339
MDDLLERR_MISSINGTO = 1340
MDDLLERR_MISSINGFROM = 1341
MDDLLERR_MISSINGBODY = 1342
MDDLLERR_MISSINGBODYFILE = 1343
MDDLLERR_MISSINGATTACHMENTFILE = 1344
MDDLLERR_MISSINGRAWPATH = 1345
MDDLLERR_CANTGENRAWFILENAME = 1346
MDDLLERR_CANTLOCKRAWFILE = 1347
MDDLLERR_CANTCREATERAWFILE = 1348
MDDLLERR_CANTACCESSBODYFILE = 1349
MDDLLERR_LDAP_BASE = 1600
End Enum

View file

@ -0,0 +1,32 @@
' Copyright (c) 2011, Outercurve Foundation.
' All rights reserved.
'
' Redistribution and use in source and binary forms, with or without modification,
' are permitted provided that the following conditions are met:
'
' - Redistributions of source code must retain the above copyright notice, this
' list of conditions and the following disclaimer.
'
' - Redistributions in binary form must reproduce the above copyright notice,
' this list of conditions and the following disclaimer in the documentation
' and/or other materials provided with the distribution.
'
' - Neither the name of the Outercurve Foundation nor the names of its
' contributors may be used to endorse or promote products derived from this
' software without specific prior written permission.
'
' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
' ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
' (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
' LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
' ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
' (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
' SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Friend Enum MD_HANDLE
MD_BADHANDLE = -1
End Enum 'MD_HANDLE

View file

@ -0,0 +1,42 @@
' Copyright (c) 2011, Outercurve Foundation.
' All rights reserved.
'
' Redistribution and use in source and binary forms, with or without modification,
' are permitted provided that the following conditions are met:
'
' - Redistributions of source code must retain the above copyright notice, this
' list of conditions and the following disclaimer.
'
' - Redistributions in binary form must reproduce the above copyright notice,
' this list of conditions and the following disclaimer in the documentation
' and/or other materials provided with the distribution.
'
' - Neither the name of the Outercurve Foundation nor the names of its
' contributors may be used to endorse or promote products derived from this
' software without specific prior written permission.
'
' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
' ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
' (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
' LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
' ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
' (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
' SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Friend Enum MD_VRFYFLAGS
MDUSERDLL_VRFYACCOUNT = 1
MDUSERDLL_VRFYMAILDIR = 2
MDUSERDLL_VRFYFWD = 4
MDUSERDLL_VRFYQUOTAS = 8
MDUSERDLL_VRFYWEBCONFIG = 16
MDUSERDLL_VRFYOPTIONS = 32
MDUSERDLL_VRFYMULTIPOP = 64
MDUSERDLL_VRFYSKIPDURINGADD = 128
MDUSERDLL_VRFYAUTORESP = 256
MDUSERDLL_VRFYALL = 383
MDUSERDLL_VRFYFILEEXISTS = 512
End Enum 'MD_VRFYFLAGS

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,205 @@
' Copyright (c) 2011, Outercurve Foundation.
' All rights reserved.
'
' Redistribution and use in source and binary forms, with or without modification,
' are permitted provided that the following conditions are met:
'
' - Redistributions of source code must retain the above copyright notice, this
' list of conditions and the following disclaimer.
'
' - Redistributions in binary form must reproduce the above copyright notice,
' this list of conditions and the following disclaimer in the documentation
' and/or other materials provided with the distribution.
'
' - Neither the name of the Outercurve Foundation nor the names of its
' contributors may be used to endorse or promote products derived from this
' software without specific prior written permission.
'
' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
' ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
' (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
' LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
' ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
' (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
' SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Imports System.Runtime.InteropServices
Public Class MDaemonInterop
#Region "Constants"
Friend Const MDUSERDLL_MDAEMONINIDB As Integer = 0
Friend Const MDUSERDLL_DOMAINDB As Integer = 1
Friend Const MDUSERDLL_HELPDB As Integer = 2
Friend Const MDUSERDLL_DELWARNDB As Integer = 3
Friend Const MDUSERDLL_DELERRDB As Integer = 4
Friend Const MDUSERDLL_RECEIPTDB As Integer = 5
Friend Const MDUSERDLL_NOCOMMANDDB As Integer = 6
Friend Const MDUSERDLL_NOSUCHUSERDB As Integer = 7
Friend Const MDUSERDLL_ACCTINFODB As Integer = 8
Friend Const MDUSERDLL_WELCOMEDB As Integer = 9
Friend Const MDUSERDLL_LOCATIONSDB As Integer = 10
Friend Const MDUSERDLL_MIMETYPEDB As Integer = 11
Friend Const MDUSERDLL_ALIASDB As Integer = 12
Friend Const MDUSERDLL_TRANSLATEDB As Integer = 13
Friend Const MDUSERDLL_TRANSEXCPTDB As Integer = 14
Friend Const MDUSERDLL_WEBACCESSDB As Integer = 15
Friend Const MDUSERDLL_RFC822TMPDB As Integer = 16
Friend Const MDUSERDLL_DIGESTTMPDB As Integer = 17
Friend Const MDUSERDLL_IPSHIELDDB As Integer = 18
Friend Const MDUSERDLL_FWDDB As Integer = 19
Friend Const MDUSERDLL_SIGDB As Integer = 20
Friend Const MDUSERDLL_MAILFORMATDB As Integer = 21
Friend Const MDUSERDLL_AUTORESPDB As Integer = 22
Friend Const MDUSERDLL_GATEWAYDB As Integer = 23
Friend Const MDUSERDLL_REFUSALDB As Integer = 24
Friend Const MDUSERDLL_LOCALONLYDB As Integer = 25
Friend Const MDUSERDLL_MULTIPOPDB As Integer = 26
Friend Const MDUSERDLL_IPCACHEDB As Integer = 27
Friend Const MDUSERDLL_MXCACHEDB As Integer = 28
Friend Const MDUSERDLL_NOCACHEDB As Integer = 29
Friend Const MDUSERDLL_PRIORITYDB As Integer = 30
Friend Const MDUSERDLL_EXCEPTIONDB As Integer = 31
Friend Const MDUSERDLL_DELUNLESSDB As Integer = 32
Friend Const MDUSERDLL_FWDUNLESSDB As Integer = 33
Friend Const MDUSERDLL_DVUNLESSDB As Integer = 34
Friend Const MDUSERDLL_MSGIDDB As Integer = 35
Friend Const MDUSERDLL_LANDOMAINDB As Integer = 36
Friend Const MDUSERDLL_IPSCREENDB As Integer = 37
Friend Const MDUSERDLL_RELAYDB As Integer = 38
Friend Const MDUSERDLL_AUTHDB As Integer = 39
Friend Const MDUSERDLL_USERLISTDB As Integer = 40
Friend Const MDUSERDLL_DOMAINPOPDB As Integer = 41
Friend Const MDUSERDLL_SPAMBLOCKERDB As Integer = 42
Friend Const MDUSERDLL_SPAMEXCEPTDB As Integer = 43
Friend Const MDUSERDLL_SPAMCACHEDB As Integer = 44
Friend Const MDUSERDLL_LDAPDB As Integer = 45
Friend Const MDUSERDLL_SCHEDULEDB As Integer = 46
Friend Const MDUSERDLL_CFILTERDB As Integer = 47
Friend Const MDUSERDLL_POLICYDB As Integer = 48
Friend Const MDUSERDLL_DPOPXTRADB As Integer = 49
Friend Const MDUSERDLL_VARIABLEDB As Integer = 50
Friend Const MDUSERDLL_AVSCHEDULEDB As Integer = 51
Friend Const MDUSERDLL_GUARDIANDB As Integer = 52
Friend Const MDUSERDLL_CENSORDB As Integer = 53
Friend Const MDUSERDLL_CFADMDB As Integer = 54
Friend Const MDUSERDLL_CFRECDB As Integer = 55
Friend Const MDUSERDLL_CFSNDDB As Integer = 56
Friend Const MDUSERDLL_CFVIRADMDB As Integer = 57
Friend Const MDUSERDLL_CFVIRRECDB As Integer = 58
Friend Const MDUSERDLL_CFVIRSNDDB As Integer = 59
Friend Const MDUSERDLL_CFVIRWRNDB As Integer = 60
Friend Const MDUSERDLL_POPLOCKDB As Integer = 61
Friend Const MDUSERDLL_CFVIRUPDATEDB As Integer = 62
Friend Const MDUSERDLL_CFCOMPRESSDB As Integer = 63
Friend Const MDUSERDLL_CFDELFILESDB As Integer = 64
Friend Const MDUSERDLL_CFDOMAINEXCDB As Integer = 65
Friend Const MDUSERDLL_CFEXCLUDESDB As Integer = 66
Friend Const MDUSERDLL_CALENDARDB As Integer = 67
Friend Const MDUSERDLL_REMINDERSDB As Integer = 68
Friend Const MDUSERDLL_CALREMINDDB As Integer = 69
Friend Const MDUSERDLL_LISTPRUNEDB As Integer = 70
Friend Const MDUSERDLL_QCOUNTSDB As Integer = 71
Friend Const MDUSERDLL_OVERQUOTADB As Integer = 72
Friend Const MDUSERDLL_PFDATADB As Integer = 73
Friend Const MDUSERDLL_ACLSHLOOKUPDB As Integer = 74
Friend Const MDUSERDLL_RECENTDB As Integer = 75
Friend Const MDUSERDLL_TARPITDB As Integer = 76
Friend Const MDUSERDLL_CFRULESDB As Integer = 77
Friend Const MDUSERDLL_CFBOUNCEDB As Integer = 78
Friend Const MDUSERDLL_AUTORESPEXCEPTDB As Integer = 79
Friend Const MDUSERDLL_ASSCHEDULEDB As Integer = 80
Friend Const MDUSERDLL_CFSAUPDATEDB As Integer = 81
Friend Const MDUSERDLL_TARPITCONNECTDB As Integer = 82
Friend Const MDUSERDLL_CFSYSRULESDB As Integer = 83
Friend Const MDUSERDLL_NOTARPITDB As Integer = 84
Friend Const MDUSERDLL_SPFCACHEDB As Integer = 85
Friend Const MDUSERDLL_SPFEXCEPTDB As Integer = 86
Friend Const MDUSERDLL_REVERSEEXCEPTDB As Integer = 87
Friend Const MDUSERDLL_DKVRFYEXCEPTDB As Integer = 88
Friend Const MDUSERDLL_DKCACHEDB As Integer = 89
Friend Const MDUSERDLL_DKSIGNLISTDB As Integer = 90
Friend Const MDUSERDLL_HCMINTLISTDB As Integer = 91
Friend Const MDUSERDLL_TASKREMINDDB As Integer = 92
Friend Const MDUSERDLL_LDAPCACHEDB As Integer = 93
Friend Const MDUSERDLL_GREYLISTDB As Integer = 94
Friend Const MDUSERDLL_NOGREYLISTDB As Integer = 95
Friend Const MDUSERDLL_ALLDB As Integer = 96 ' This must be last and represents all of the above files
Friend Const MDUSERDLL_WORLDCLIENTINIDB As Integer = 100 ' not cached
Friend Const MDUSERDLL_WORLDCLIENTDOMAINDB As Integer = 101 ' not cached
Friend Const MDUSERDLL_GROUPWAREUSRDB As Integer = 102 ' not cached
Friend Const MDUSERDLL_CFSPAMEXCLUDEDB As Integer = 103 ' not cached
Friend Const MDUSERDLL_SUBCONFDB As Integer = 104 ' not cached
Friend Const MDUSERDLL_UNSUBCONFDB As Integer = 105 ' not cached
Friend Const MDLISTERR_NOERROR As Integer = 1
Friend Const MDLISTERR_INVALIDLISTNAME As Integer = 2
Friend Const MDLISTERR_INVALIDEMAILADDRESS As Integer = 3
Friend Const MDLISTERR_INVALIDREMOTEHOST As Integer = 4
Friend Const MDLIST_NORMAL As Integer = 1
Friend Const MDLIST_POSTONLY As Integer = 2
Friend Const MDLIST_READONLY As Integer = 3
Friend Const MDLIST_DIGEST As Integer = 4
Friend Const MDLIST_ENABLEDIGESTS As Integer = &H1
Friend Const MDLIST_FORCEDIGESTUSE As Integer = &H2
Friend Const MDLIST_HTMLDIGESTS As Integer = &H4
Friend Const MDLIST_ARCHIVEDIGESTS As Integer = &H8
Friend Const MDLIST_NINE As Integer = &H10
Friend Const MDLIST_TWELVE As Integer = &H20
Friend Const MDLIST_THREE As Integer = &H40
Friend Const MDLIST_SIX As Integer = &H80
Friend Const MDLIST_AM As Integer = &H100
Friend Const MDLIST_PM As Integer = &H200
Friend Const MDLIST_AUTOPRUNE As Integer = &H1
Friend Const MDLIST_PRIVATE As Integer = &H2
Friend Const MDLIST_ALLOWEXPN As Integer = &H4
Friend Const MDLIST_LISTNAMEINSUBJECT As Integer = &H8
Friend Const MDLIST_THREADNUMBINSUBJECT As Integer = &H10
Friend Const MDLIST_USEMEMBERNAMES As Integer = &H20
Friend Const MDLIST_USELISTNAME As Integer = &H40
Friend Const MDLIST_USESTANDARDNAME As Integer = &H80
Friend Const MDLIST_INSERTCAPTION As Integer = &H100
Friend Const MDLIST_CRACKMESSAGE As Integer = &H200
Friend Const MDLIST_FORCEUNIQUEID As Integer = &H400
Friend Const MDLIST_IGNORERCPTERRORS As Integer = &H800
Friend Const MDLIST_MODERATED As Integer = &H1000
Friend Const MDLIST_SUBSCRIBENOTE As Integer = &H2000
Friend Const MDLIST_UNSUBSCRIBENOTE As Integer = &H4000
Friend Const MDLIST_MSGTOOBIGNOTE As Integer = &H8000
Friend Const MDLIST_INFORMNONMEMBER As Integer = &H10000
Friend Const MDLIST_SENDSTATUSMESSAGES As Integer = &H20000
Friend Const MDLIST_ALLOWSUBSCRIBE As Integer = &H40000
Friend Const MDLIST_AUTHSUBSCRIBE As Integer = &H80000
Friend Const MDLIST_AUTHAUTOSUBSCRIBE As Integer = &H100000
Friend Const MDLIST_ALLOWUNSUBSCRIBE As Integer = &H200000
Friend Const MDLIST_AUTHUNSUBSCRIBE As Integer = &H400000
Friend Const MDLIST_AUTHAUTOUNSUBSCRIBE As Integer = &H800000
Friend Const MDLIST_PASSWORDPOST As Integer = &H1000000
Friend Const MDLIST_USEPUBLICFOLDER As Integer = &H2000000
Friend Const MDLIST_HIDEFROMADDRESSBOOK As Integer = &H4000000
#End Region
<DllImport("kernel32", EntryPoint:="GetPrivateProfileSectionW", CharSet:=CharSet.Unicode, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function GetPrivateProfileSection(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpAppName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpReturnedString As String, ByVal nSize As Integer, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpFileName As String) As Integer
End Function
<DllImport("kernel32", EntryPoint:="GetPrivateProfileStringW", CharSet:=CharSet.Unicode, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function GetPrivateProfileString(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpApplicationName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpKeyName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpDefault As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpReturnedString As String, ByVal nSize As Integer, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpFileName As String) As Integer
End Function
<DllImport("kernel32", EntryPoint:="WritePrivateProfileSectionA", CharSet:=CharSet.Unicode, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function WritePrivateProfileSection(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpAppName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpString As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpFileName As String) As Integer
End Function
<DllImport("kernel32", EntryPoint:="WritePrivateProfileStringW", CharSet:=CharSet.Unicode, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function WritePrivateProfileString(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpApplicationName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpKeyName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpString As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpFileName As String) As Integer
End Function
End Class

View file

@ -0,0 +1,13 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>false</MySubMain>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>1</ApplicationType>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>

View file

@ -0,0 +1,19 @@
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attributes
<Assembly: AssemblyTitle("WebsitePanel.Providers.Mail.MDaemon")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyProduct("WebsitePanel.Providers.Mail.MDaemon")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("7f6b3c44-890b-42de-95d7-5d2371261d01")>

View file

@ -0,0 +1,63 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace My.Resources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("WebsitePanel.Providers.Mail.Resources", GetType(Resources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
End Module
End Namespace

View file

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,73 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBase
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
#Region "My.Settings Auto-Save Functionality"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
If My.Application.SaveMySettingsOnExit Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock addedHandlerLockObject
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.WebsitePanel.Providers.Mail.My.MySettings
Get
Return Global.WebsitePanel.Providers.Mail.My.MySettings.Default
End Get
End Property
End Module
End Namespace

View file

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View file

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FE48854E-9332-4E37-A5F2-5DF9DDD740D5}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>WebsitePanel.Providers.Mail</RootNamespace>
<AssemblyName>WebsitePanel.Providers.Mail.MDaemon</AssemblyName>
<MyType>Windows</MyType>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>..\WebsitePanel.Server\bin\</OutputPath>
<DocumentationFile>
</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn>
<CodeAnalysisRules>
</CodeAnalysisRules>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>None</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<Optimize>true</Optimize>
<OutputPath>..\WebsitePanel.Server\bin\</OutputPath>
<DocumentationFile>
</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\VersionInfo.vb">
<Link>VersionInfo.vb</Link>
</Compile>
<Compile Include="MDaemon.vb" />
<Compile Include="MD_DELFLAGS.vb" />
<Compile Include="MD_ERROR.vb" />
<Compile Include="MD_HANDLE.vb" />
<Compile Include="MD_VRFYFLAGS.vb" />
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="MDaemonInterop.vb" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WebsitePanel.Providers.Base\WebsitePanel.Providers.Base.csproj">
<Project>{684C932A-6C75-46AC-A327-F3689D89EB42}</Project>
<Name>WebsitePanel.Providers.Base</Name>
</ProjectReference>
<ProjectReference Include="..\WebsitePanel.Server.Utils\WebsitePanel.Server.Utils.csproj">
<Project>{E91E52F3-9555-4D00-B577-2B1DBDD87CA7}</Project>
<Name>WebsitePanel.Server.Utils</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>