Directory Checking (was RE: [MAILSCANNER] Logs vs. headers)

Desai, Jason jase at SENSIS.COM
Mon Apr 26 18:06:31 IST 2004


Julian Field wrote:
> Fair enough. I will implement some checking of the header names.

Speaking of common errors that MailScanner might be able to catch, how about
checking for the real path of directories in case they have symbolic links
in them?  Then just use the real path instead.  I think someone on this list
suggested something like this a while back.

For a simple way to get the real path, you could do something like this:

#!/usr/bin/perl
use Cwd 'abs_path';
$Dir = "/path/to/dir";
$RealDir = abs_path($Dir);

The problem with symbolic links is that MailScanner may not realize that a
virus scanner has found a virus, and thus deliver the virus.  What do you
think?

Jason

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
For further info about MailScanner, please see the Most Asked
Questions at    http://www.mailscanner.biz/maq/     and the archives
at    http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list