UNKNOWN CLAMD RETURN
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Jul 19 19:08:42 IST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rick Cooper wrote:
>
>
> > -----Original Message-----
> > From: mailscanner-bounces at lists.mailscanner.info
> > [mailto:mailscanner-bounces at lists.mailscanner.info] On
> > Behalf Of Rick Cooper
> > Sent: Thursday, July 19, 2007 8:51 AM
> > To: 'MailScanner discussion'
> > Subject: RE: UNKNOWN CLAMD RETURN
> >
> >
> >
> > > -----Original Message-----
> > > From: mailscanner-bounces at lists.mailscanner.info
> > > [mailto:mailscanner-bounces at lists.mailscanner.info] On
> > > Behalf Of UxBoD
> > > Sent: Thursday, July 19, 2007 8:33 AM
> > > To: MailScanner discussion
> > > Subject: Re: UNKNOWN CLAMD RETURN
> > >
> > > Rick,
> > >
> > > That is the problem as it does not get flagged by MailWatch
> > > as a Virus, which I believe just grabs the whole line from
> > > MailScanner.
> > >
> > [...]
> >
> > I really wish I had that message |->(
> >
> > Try this:
> >
> > if ($filename =~ /.+?\sFOUND$/ && $childname =~
> > /^.+\.header$) {
> > $rest = $filename;
> > $filename = $childname;
> > $childname =~ s/(.+)\.header$/$1/;
> > }
> >
>
> [...]
>
> Doh! Of course the first line should be:
>
> if ($filename =~ /.+?\sFOUND$/ && $childname =~ /^.+\.header$/) {
>
Surely that's the same as
if ($filename =~ /\sFOUND$/ && $childname =~ /\.header$/) {
You are already anchoring to the end of the string with $ so any initial
regexp elements that match 'any character' are redundant and just slow
it down.
> Forgot the last '/' in "$childname =~ /^.+\.header$/" sorry
>
> Rick
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
Jules
- --
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1
wj8DBQFGn6iqEfZZRxQVtlQRAjm8AJ9ROcpxdbd2+8wXUxLzTNx2PTrfKACcCSRb
ENr70MyO5l0PQACknxvQ+5Q=
=BKeI
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list