procmail
[Top] [All Lists]

Re: vacation response

2000-04-23 13:45:47
From: Dallman Ross <dman(_at_)netcom(_dot_)com>

=   * ! ^(X?|Mailing)-?[a-z-]*List[a-z:-]+

[major self-ectomy]

Now comes the (first) hyphen, or at least a possible one.  If we'd
gone with either an "X" or "Mailing" already before, we'll use the
hyphen here the optional one time permitted by my "-?" phrasing. 
If, otoh, we're still after beginning with "List", though, we'll
revert to the other option of zero hyphens so far.

Now we're up to "[a-z-]*", which text (if any) can include hyphens but
[more snippage]

I realized (I think :-) on rereading what I'd just written that my
phrase can be streamlined still further with no ill effect, i.e., no
broadening scatter-effect, thus:


        * ! ^(X?|Mailing)[a-z-]*List[a-z:-]+


(Didn't need the "-?", as it's covered anyway in the next atomic part.)

-- 
    \     .-.     .-.     .-.     .-.     .-.     .-.     .-.     /
     \-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
      '-'     '-'     '-'     '-'     '-'     '-'     '-'     '-'

<Prev in Thread] Current Thread [Next in Thread>