OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: modify incoming mail

From: LuKreme (kremelskreme.com)
Date: Tue Mar 17 2009 - 20:06:20 CDT


On 17-Mar-2009, at 17:18, Cedric Zeline wrote:
> I need some help. I would like to modify incoming emails.
> I need to add a link at top of the incoming mail body, in order to
> allow employees that received their email to click on this link and
> connect directly to our data base to check the client's data. I need
> to add a link that will pass the client's email as parameters
> (should be something like http://192.168.0.2/client.php?client=emaildomaine.com)
> .
> I was thinking to do this job with postfix body_checks features by
> using body rewritting but I can't find the way to do it because I
> can't find a way to identify the begining of the mail body.

I don't know if you can identify the beginning of the body reliably,
but if you use a mail client for your employees that allows you to
customise the headers that are displayed, you could do this with a
prepend action in the headers.

Still, *I* would do it with procmail.

--
And the three men I admire most, the father son and the holly ghost
        they caught the last train for the coast...