procmail
[Top] [All Lists]

Re: send file [size] recipe wanted

1996-03-21 15:10:35
| I need to pick apart variables from the subject line, so I need a way of
| parsing out each WORD (space-separated) into diff. variables.

That's what the MATCH facility is for.  It came in around version 3.06.

I do something similar (getting each word of a line into a variable, using
$MATCH) to parse the From_ line for date information when I want recipes to
turn on or off automatically at predetermined dates and times.

It's a matter of getting the regexps right, and I don't know what kind of
text you'll be looking through.  Remember that procmail looks for the
shortest left side and longest right side when it sets $MATCH.

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