I have an account on a Groupwise box which I have set to delegate all mail
which hits it to another account which I can filter with Procmail.

The problem is that this delegate function (there is nothing like .forward
on Groupwise) does some serious damamge to the message headers...it acts
more like a forward than a .forward.

When a message comes in, it is mangled to this:

  FROM: "Mike Neuharth" <mjn at groupwise.system.com>
  TO: mjn at umn.edu
  Subject: Random subject-Delegated

  >>> username 12/02/03 14:51 >>>
  txt txt txt txt txt txt txt txt txt txt


Things to note in the above text:

->The FROM address shows up as my account on the groupwise system and not
the /original/ sender.
->The "username" contained within the line starting ">>>" is the username
of the original sender.
->Subject has "-Delegated" appended to it by the Groupwise system

Is there a way for me, with Procmail, pull out "username", attach an
@groupwise.system.com to it, and then replace the FROM: string in the
message with that concotion...so the message comes out looking like this:

  FROM: username at groupwise.system.com
  TO: mjn at umn.edu
  Subject: Random subject

  >>> username 12/02/03 14:51 >>>
  txt txt txt txt txt txt txt txt txt txt


Anyone know how/if i can do this?

--
_______________________________________________
Mike Neuharth
ADCS Technology Specialist
http://www.umn.edu/adcs
===============================================
E-Mail          : mjn at umn.edu
Page Mail       : 6126486512 at page.metrocall.com
_______________________________________________
"What is important, it seems to me, is not so much to defend a culture
 whose existence has never kept a man from going hungry, as to extract,
 from what is called culture, ideas whose compelling force is identical
 with that of hunger."  -Antonin Artaud

_______________________________________________
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