Gary,

> Can't locate object method "new" via package "Amavis"
> at /usr/sbin/amavisd-new line 7128. 
> And it would not start while using Net::Server 0.87. 

> 0.93 also worked, 0.90 did not

Thanks, I'll make it work again with 0.90:

sub new {
  my($class) = shift;
  # make Amavis a subclass of Net::Server::whatever
  @ISA = defined($min_servers) ? 'Net::Server::PreFork'
                               : 'Net::Server::PreForkSimple';
# $class->SUPER::new(@_);  # available since Net::Server 0.91
  bless { server => $_[0] }, $class;  # works with all versions
}


man Net::Server

  "$self->new"
    As of Net::Server 0.91 there is finally a new method.  This method
    takes a class name and an argument hashref as parameters.  The
    argument hashref becomes the "server" property of the object.


Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to