The job of the validator is to confirm the release is valid, not just from a completeness point of view i.e. all files and parts of files are available as this is done by the extractor. But that the release is useable and fit for use in a system. There are a number of tests that can be run and depending on what your target use is of the releases different tests can be used.
The current implementation is outlined on the [How to Index NNTP Usenet Groups] page.
The first few checks are trivial and only require the data that is already available in the release NZB file. The more comprehensive RAR password testing and ultimately any file content testing needs to actually download parts or whole files to be further processed.
In the case of RAR password checking just the first segment (part) of the RAR file is downloaded and analyses. This will incur a download data hit of a few hundred KB of data but it allows exclusion of passworded releases which can be a pain when building indexes.
To extract RAR file data and check for passworded files inside other RAR files the validator uses the freeware unrar tool available from RarLabs http://www.rarlab.com/rar_add.htm. To do deep inspection of RAR files you need to download the unrar tool for your platform from the above page and extract it to the same path as the ReleasesValidator.exe.
Once the release has been validated it is copied to one of two output paths, a directory containing valid releases and a directory containing invalid releases. The invalid releases can be deleted on a daily bases is they are no longer needed.
By default ReleasesValidator.exe tries to load config data from "validator.conf" you can also specify the config file name on the command line
Usage:
ReleasesValidator.exe "config file name"
The config file has the following options:
NntpServer= your news server
NntpUser= your user name
NntpPassword= your password
InputPath= path to the NZB files to be tested
ValidOutputPath= the valid output path
InValidOutputPath= the invalid output path
BlackListedSubject= RegEx with black listed subject text
You can repeat the last config option multiple times
BlackListedSubject=RegEx01
BlackListedSubject=RegEx02
BlackListedSubject=RegEx03
This will load all the black list RegEx in and test each one of a release subject for blacklist matches.
Wiki: Home
Wiki: How to Index NNTP Usenet Groups
This settings do not match the current code:
Instead use: