Maybe the easiest way to do this would be to use procmail to set an
environment variable to the username (see the discussion of \/ in the
procmailrc man page).  Then pipe the message into formail, which will
do the header-munging for you, and then save it:

Something like the following (completely untested):

:0:b
* ^From: <groupwise regexp here>
* username: \/<weird regexp here>
| formail -i"From: $MATCH at groupwise.com" >> $DEFAULT



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list