[Mimedefang] Filtering Based On Header Info / Adding To Examples & Docs

David F. Skoll dfs at roaringpenguin.com
Wed Mar 13 16:42:13 EST 2002

On Wed, 13 Mar 2002, Jeffrey Thompson wrote:

> I would like to identify the message to block based on a string in the
> header (any match on: beleskari anywhere in the header).  Is the best
> thing to do:

> open (IN, "<./HEADERS");
> while(<IN>) {
>    if(/beleskari/i) {
>       action_bounce("Porn not welcome here");
>    }
> }
> close(IN);
> ---------------------

Yes, although I'd add a "last;" after the action_bounce.

> If that's the best way?  If so then maybe we need to start adding to the
> examples directory for particular purposes like this :-)

Sure, or I can make a "contrib" directory.

> I could start a web page to support and document this if you'd like.

Yes, please!  Anything to reduce my load. :-)



More information about the MIMEDefang mailing list