On Wed, 03 Dec 2003, mjn wrote:

> 
> 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?

You can always write a shell or perl script to process the mail, and
use procmail to pipe it to this script.

:0
| processgroupwise.sh

_______________________________________________
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