Checks to make sure that the incoming message is from a poster in a file of valid posters. The most common use of this module is in conjunction with human moderation; all messages from pre-approved posters are sent straight through via the robomoderator and the rest are relayed to a human moderator for hand checking.
This module takes one configuration directive:
FILE is a list of poster addresses, one per line. Only the address should be included in this file, not the name or other comments. Files ending in .db are reserved for future implementations (eventually, these will automatically be recognized as Berkeley db files for handling large lists of posters).
FILE
.db
There is one possible failure message:
The message is from a poster address which isn't in the whitelist of known addresses.
In addition, during parsing of the configuration directives, one fatal error, which would be passed to error(), is possible:
An error occurred while trying to open a file given as a FILE argument to a configuration directive.
This module takes no arguments.
To install News::Gateway, copy and paste the appropriate command in to your terminal.
cpanm
cpanm News::Gateway
CPAN shell
perl -MCPAN -e shell install News::Gateway
For more information on module installation, please visit the detailed CPAN module installation guide.