[Mimedefang] Body Content Filtering

Mitch at 0Bits.COM Mitch at 0Bits.COM
Mon Aug 18 12:12:01 EDT 2003


Look at my

	http://mx.homelinux.com/mitch/mimedefang

snippet which parses for embedded URL's and matches
against RBL or CIDR.

Mitch

-------- Original Message --------
Subject: [Mimedefang] Body Content Filtering
Date: Mon, 18 Aug 2003 12:04:31 -0400
From: Fred Felgenhauer <fred at fredf.com>
Reply-To: mimedefang at lists.roaringpenguin.com
To: <mimedefang at lists.roaringpenguin.com>

I have searched the list to no avail. I need to search outgoing mail
bodies for a certain keyword.
I have tried this:

open (IN, "./INPUTMSG") || die "Error opening input message";
	while (<IN>) {
	  chop();
	  if (/pattern-to-look-for-in-each-line/) {
	    # do something
	  }
	}
	close(IN);

This works great, but when it comes to Base64 encoded messages, I cannot
find enough info to be able to do it.
Can anyone help?





More information about the MIMEDefang mailing list