|
Properties
Count As Long (read-only)
The number of domain names in the blacklist.
LastErrorHtml As String (read-only)
Error information in HTML format for the last method called.
LastErrorText As String (read-only)
Error information in plain-text format for the last method called.
LastErrorXml As String (read-only)
Error information in XML format for the last method called.
Methods
AddDomains(str As String)
Adds 1 or more domains to the blacklist. The domain names in the input string should be separated by whitespace ( space, tab, or CRLF characters ) and not commas.
ContainsBlackListed(str As String) As Long
Searches the content and determines if any domain contained in the blacklist is present in the content.Returns 1 if the domain is present in the content, otherwise returns 0.
Convert(inFilename As String, outFilename As String) As Long
Converts a text file containing one domain-name per line to a Chilkat BlackList format file. This is a binary file that contains the list of domain names (canonicalized with no duplicates) and in pre-sorted order with lookup indexes. The output file of this method is what should be loaded with the Load method. Failure means that the input file could not be found or read, or that the output file could not be created.Returns 1 for success, 0 for failure.
Export(outFilename As String) As Long
Exports the blacklist to a text file containing one domain name per line.Returns 1 for success, 0 for failure.
ExtractDomains(str As String) As CkStringArray
Finds all the domains present in the content and returns a CkStringArray object containing the domain names (all lowercase and no duplicates). *CkStringArray is a free component and is included in the ChilkatUtil DLL that is part of the BlackList download.Returns 1 for success, 0 for failure.
ExtractEmailDomains(iEmail As ChilkatEmail2) As CkStringArray
Finds all the domains present in any part of an email and returns a CkStringArray object containing the domain names (all lowercase and no duplicates). This feature can only be used if the Chilkat Mail component is downloaded and installed, and it also requires Chilkat Mail to be licensed in addition to Chilkat BlackList.*CkStringArray is a free component and is included in the ChilkatUtil DLL that is part of the BlackList download.
ExtractWebMailDomains(iWebMail As WebEmail2) As CkStringArray
Finds all the domains present in any part of an email and returns a CkStringArray object containing the domain names (all lowercase and no duplicates). This feature can only be used if the Chilkat WebMail ASP Component is downloaded and installed, and it also requires Chilkat WebMail to be licensed in addition to Chilkat BlackList. *CkStringArray is a free component and is included in the ChilkatUtil DLL that is part of the BlackList download.
GetDomain(index As Long) As String
Returns the Nth domain in the blacklist. Indexing begins at 0, and the number of domains in the blacklist is found in the Count property.
IsBlackListed(domain As String) As Long
Takes a domain name, whether in standard form or not, and tells whether it is in the blacklist or not.A value of 1 is returned if the domain is in the blacklist, 0 is returned if not in the blacklist.
IsEmailBlackListed(iEmail As ChilkatEmail2) As Long
Takes an email object and tells whether it contains a blacklisted domain in any of it's header or body parts, HTML included. This feature can only be used if Chilkat Mail is downloaded and installed, and it also requires Chilkat Mail to be licensed in addition to Chilkat BlackList.A value of 1 is returned if a blacklisted domain is found, 0 if not.
IsWebMailBlackListed(iWebMail As WebEmail2) As Long
Takes an WebEmail object and tells whether it contains a blacklisted domain in any of it's header or body parts, HTML included. This feature can only be used if the Chilkat WebMail ASP Component is downloaded and installed, and it also requires Chilkat WebMail to be licensed in addition to Chilkat BlackList.A value of 1 is returned if a blacklisted domain is found, 0 if not.
Load(filename As String) As Long
Loads a blacklist from a Chilkat Blacklist formatted binary file. This file can be created by either the Save method or the Convert method.Returns 1 for success, 0 for failure.
RemoveDomains(str As String)
Removes 1 or more domains from the blacklist. Domain names should be separated by whitespace ( space, tab, or CRLF characters) and not commas.Returns 1 for success, 0 for failure.
Save(filename As String) As Long
Saves the blacklist to a Chilkat Blacklist formatted (binary) file. This is a specially formatted structured file that stores the blacklist with pre-computed lookup indexes. The contents of the saved file can be accessed using the Export method. The blacklist object can be re-populated by calling Load.Returns 1 for success, 0 for failure.
SaveLastError(filename As String) As Long
Saves the last error information to an XML formatted file.
UnlockComponent(unlockCode As String) As Long
Unlocks the component. This must be called once at the beginning of your program to unlock the component. A permanent unlock code is provided when the BlackList component is licensed. A 30-day trial code can be obtained by registering at http://www.chilkatsoft.com/register30.asp
|