David W. Tamkin wrote:
Era Eriksson wrote,
| What I ended up with next is
| * ^\/Apparently-To.(fifty-nine, I think, ".?"'s)
| but this is +slightly+ too cumbersome to use in every single recipe
| that contains a \/ --
...
| Can anybody come up with something neater?
Then save it in a variable:
MAX_29=".?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?.?"
MAX_59="$MAX_29.?$MAX_29"
* $ ^\/Apparently-To:$MAX_59
Or you could set MAX_29=(..............)?(........)?(....)?.?.?
or could have MAX_31=(................)?(........)?(....)?.?.?
and so forth. 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