On Sat, 14 Nov 1998, era eriksson wrote:
Depends on how exact you want to be. Do you want two zeros for dates
that are on day 1-9 of the month? Here you have excluded them
completely which I imagine is not what you want. Anyhow, here's a more
exact variant:
\/([1-9]|[1-2][0-9]|3[0-1])(0[1-9]|1[0-2])(19|2[0-9])[0-9][0-9]
^^^^^^^^^^^
Figure out how to change this if you want leading zeros :-)
i tried to do this with the above example:
# --- Assignment distribution ---
:0
* ^Subject:.*get assign \/[0-9]+
* !X-Loop:(_dot_)*tambok(_at_)usls(_dot_)edu
{
MAILDIR=$HOME/assign
:0 fhw
* ^Subject:.*get assign \/[0-9]([0-9])?
| formail -rA "X-Loop: tambok(_at_)usls(_dot_)edu"
FILE="$MATCH" + ".txt"
:0 ah
| cat - ./$FILE 2>&1 | $SENDMAIL -oi -t
}
the problem is: procmail ignores additional parameters other than "$MATCH"
in the FILE line. how do i add a suffix (i.e. '.txt') with the matched
number?
thanks!
---
u s l s N E T university of st. la salle, bacolod city, philippines
. . . . . . . PGP key available via e-mail / subject: get PGP key
francis vidal tel. nos. (6334).435.2324 / 433.3526