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:
|
|