Gateway
view release on metacpan or search on metacpan
News/Gateway.in view on Meta::CPAN
# This method creates a new gateway object. It takes arguments specifying
# whether we're running interactively (if we are, errors can be dealt with
# by dying; otherwise, we need to send mail), the maintainer (administrative
# contact address) which defaults to the user we're running as if none is
# given, and the envelope sender that should be used for any and all replies
# to articles.
sub new {
my $that = shift;
my $class = ref $that || $that;
my ($interactive, $maintainer, $envelope) = @_;
unless ($maintainer) { $maintainer = (getpwuid ($<))[0] }
unless ($envelope) { $envelope = $maintainer }
my $self = {
confhooks => {},
mesghooks => [],
envelope => $envelope,
interactive => $interactive,
maintainer => $maintainer
};
bless ($self, $class);
}
( run in 0.241 second using v1.01-cache-2.11-cpan-8d75d55dd25 )