[Mimedefang] Variable Initialization for mimedefang-filter

Albert E. Whale aewhale at ABS-CompTech.com
Wed Apr 10 17:05:30 EDT 2002


Ok, now that I've enterd that information, I have the following errors,
WHY?

This was message was found to be carrying an attachment
that contained a known virus.  The attachment has been replaced.
The following information may be helpful to determine its source:
        Sender:         <mimedefang at hky.com>
        From:   MIMEDefang <mimedefang at hky.com>
        Virus:          Unable to execute /usr/bin/antivir -allfiles -z -q

-rs ./Work 2>&1: No such file or directory
Unable to execute /usr/bin/antivir -allfiles -z -q -rs
Work/msg-16811-10.txt
2>&1: No such file or directory

        Attachment:
        Mime-Encoding:  text/plain


"David F. Skoll" wrote:

> On Wed, 10 Apr 2002, Albert E. Whale wrote:
>
> > Here's My Filter File.  Hope that makes more sense.
>
> Yes, it does; there's a comment which reads:
>
> # $FromAddress above here is obtained from the HEADERS file
>
> except there's nothing which sets FromAddress.  If you really need it,
> you have to put this in filter_begin:
>
> $FromAddress = "Unknown";
> if (open(HDR, "<HEADERS")) {
>     while(<HDR>) {
>         chomp;
>         if (/^From:\s*(.*)$/i) {
>             $FromAddress = $1;
>             last;
>         }
>     }
>     close(HDR);
> }
>
> --
> David.
>
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

--
Albert E. Whale - CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant





More information about the MIMEDefang mailing list