Mailscanner not scanning attatchments

Julian Field jkf at ecs.soton.ac.uk
Wed May 15 11:35:10 IST 2002


At 11:28 15/05/2002, you wrote:
>This will fail if the installed version of Sys::Syslog does not have the
>setlogsock method, which quite a few versions don't (see the Perl in a
>Nutshell O'Reilly book). To avoid that problem, I would do this instead:
>
>sub Start {
>   # Do this in an eval so it can fail quietly if setlogsock
>   # is not supported in the installed version of Sys::Syslog
>   eval { Sys::Syslog::setlogsock('unix'); } # Doesn't need syslogd -r
>   Sys::Syslog::openlog(@_, 'pid, nowait', 'mail');
>}

I missed the ";" off the end of the "eval" line, it should of course read
  eval { Sys::Syslog::setlogsock('unix'); }; # Doesn't need syslogd -r
--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list