MailScanner Internals
Rick Cooper
rcooper at DWFORD.COM
Fri Apr 16 15:09:24 IST 2004
> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Clive Eisen
> Sent: Friday, April 16, 2004 8:04 AM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: MailScanner Internals
>
>
> Julian Field wrote:
>
> > At 11:50 16/04/2004, you wrote:
> >
> >> Julian - sorry to ask you directly but I suspect only you will know the
> >> answer :-)
> >>
> >> In what combination of circumstances is $message->{virusinfected} set?
> >>
> >> I have seen $message->{nameinfected} set and
> $message->{othereinfected}
> >> set, but never
> >> $message->{virusinfected}
> >>
> >> I'm trying to write a custom function and am a bit puzzled.
> >
> >
> > A quick grep of the code reveals that it is set in
> SweepViruses.pm when a
> > virus report is merged into the list of all the reports for a batch.
> > --
> > Julian Field
> > www.MailScanner.info
> > MailScanner thanks transtec Computers for their support
> >
> > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> Does that mean that it does not relate to an individual message?
>
> I have sent viruses and tried to check their value, including, following
> the recomendations in the other reply to this thread, in Always Looked
> Up Last and it's still not set
>
> My point is - I cannot produce the circumstances when it is set or at
> least, not during the processing of a given message at least.
>
> Ho Hum and thanks for your swift help.
>
Note that MessageBatch.pm sets $message->{virusinfected} = 0; in sub
DisinfectAndDeliver
so it seems it would not still be set if used as an alwayslookuplast last
since it appears that call is made in bin/MailScanner after all the other
processing. What are you trying to do in the custom function? It might be
you need to patch a call in from somewhere else to achieve what you want to
do.
More information about the MailScanner
mailing list