[Mimedefang] Variable Initialization for mimedefang-filter
Albert E. Whale
aewhale at ABS-CompTech.com
Wed Apr 10 13:45:42 EDT 2002
Thank you!
"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