procmail
[Top] [All Lists]

Re: Restricting length of MATCH?

1997-10-30 14:46:29
James Waldby wrote,

| Or you could set MAX_29=(..............)?(........)?(....)?.?.?
| or could have  MAX_31=(................)?(........)?(....)?.?.?
| and so forth.

I think you made a typo, James.  Neither of those expressions would match
a three-character string (nor certain other lengths requiring a remainder of
three).  But the idea, if typed perfectly, works.

| Incidentally, GNU egrep allows a {m,n} character
| repetition operator [from GNU egrep 2.0 man page:  {,m}  The preceding
| item is optional and  is  matched  at most m times] but apparently
| procmail doesn't have this

No, it does not; last time Stephen had some time for procmail he mentioned
it as a possible future enhancement (however, because braces in regexps in
existing procmail rcfiles mean literal braces, the format would be \{m,n\}).

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