procmail
[Top] [All Lists]

Feature request: head\/MATCH\/tail

1997-07-05 03:46:00
Stephen, 

Would it be hard to patch the \/ kludge to allow for +two+ \/ tokens
in a condition line? What I have in mind is something like the \/
lookahead in lex, or Perl's (?=) lookahead assertion. 

So then, 

    [   ]*\/[^  ].*[^   ]\/[    ]*

would grab the longest non-blank string (with or without embedded
blanks) and place that in MATCH, but leave off the leading and
trailing whitespace.

What do you think?

/* era */

Cc:d to Procmail-L

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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