:0
*
From:.*\/(user1(_at_)mobile(_dot_)att(_dot_)net|user2(_at_)mobile(_dot_)att(_dot_)net)
TOADDR=`grep "$OLDADDR" addressmap | awk -c '{print $2}'`
This would work, but I don't quite like the matching condition. I'd have to
update both the rc file AND the external file every time I add a new address
to be matched.
Then how about something like this:
FRMADDR=`( o=""; j=""; while read a b; do o="$o$j$a"; j="|"; done; \
echo "$o" ) <addressmap`
:0
* $ From:.*\/($FRMADDR)
...etc...
Which is pretty ugly, but just shell.
Martin
--
Martin McCarthy /</ PGP key available
`Procmail Companion' \>\ http://www.ancient-scotland.co.uk
Addison Wesley /</ http://www.ehabitat.demon.co.uk
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail