Great Circle Associates Majordomo-Users
(June 2000)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Problems with my Global Body Taboo
From: Dan Liston <dliston @ netscape . com>
Organization: iPlanet E-Commerce Solutions, A Sun Netscape Alliance
Date: Sat, 24 Jun 2000 17:11:47 -0500
To: Julian Easterling <jeasterl @ bellatlantic . net>
Cc: majordomo-users @ GreatCircle . COM
References: <394006BA@correo> <4.1.20000623112259.01f82c98@mailbox.bellatlantic.net>

First off, I would put these filters in administrivia rather than
the body filters.  In other words, admin_body rather than taboo_body, 
so that only the first 10 lines rather than the whole message body get
checked for a match.

I am still trying to "master regular expressions" myself, but from the
book I am reading, you have numerous regex newbie mistakes in your taboo
section.  Having multiple ".*" in a single line is most likely not doing
what you are expecting it to do.  What is wrong with simply trying;

/I am out of the office/i
/I will be out of the office/i
/I am on vacation/i
/I will be on vacation/i
/I am away from the office/i
/I am away on vacation/i
/when I return from vacation/i

or if majordomo supports it, something like this;

/I (am|will be) .* (office|vacation)/i

Dan Liston

Julian Easterling wrote:
> 
> I have recently had some problems with an out of office reply to one of my
> lists that got past the normal filters that block this type of message.
> There was nothing in the headers or subject that said this was an out of
> office auto reply, however the user wrote in the body of the message that
> they were out.  In a attempt to keep this from happening again, I set up
> global body taboos as listed below, but messages are still getting through
> when I send a test message with the words in them.  I need to be a specific
> as I can, so that I don't block legitimate messages coming in the lists.
> Can someone tell me what I am doing wrong.  Regular Expressions are not my
> strong suit.  Thanks.
> 
> The section of the majordomo.cf file:
> 
> #
> $global_taboo_body = <<'END';
> /s\bi\b.*\bout\b.*\boffice\b/i
> /\s.*\bi\b.*\bout\b.*\boffice\b/i
> /\s\bi\b.*\bout\b.*\bvacation\b/i
> /\s.*\bi\b.*\bout\b.*\bvacation\b/i
> /\s\bi\b.*\baway\b.*\boffice\b/i
> /\s.*\bi\b.*\baway\b.*\boffice\b/i
> /\s\bi\b.*\baway\b.*\bvacation\b/i
> /\s.*\bi\b.*\baway\b.*\bvacation\b/i
> /\s\bi\b.*\bgone\b.*\boffice\b/i
> /\s.*\bi\b.*\bgone\b.*\boffice\b/i
> /\s\bi\b.*\boffice\b.*\breturn\b/i
> /\s.*\bi\b.*\boffice\b.*\breturn\b/i
> END
> 
> I am trying to filter out things like:
> 
> I am out of the office until ....
> 
> Thanks for any help.
> 
> Julian.


References:
Indexed By Date Previous: Re: integration with LDAP -help
From: Dan Liston <dliston@netscape.com>
Next: Re: Reply to header(s)
From: Dan Liston <dliston@netscape.com>
Indexed By Thread Previous: Re: Problems with my Global Body Taboo
From: Dan Liston <dliston@netscape.com>
Next: RE: Changing From: field (Majordomo)
From: Thomas Hucke <hucke@uabcs.mx>

Google
 
Search Internet Search www.greatcircle.com