Re: [exim] How to split cc's & bcc's into separate messages

Góra strony
Delete this message
Reply to this message
Autor: Renaud Allard
Data:  
Dla: Rick Duval
CC: exim users
Temat: Re: [exim] How to split cc's & bcc's into separate messages
On Fri, November 21, 2008 01:40, Rick Duval wrote:
> Is there a way to take one email addressed to 5 people with cc's (for
> instance) and split them into 5 separate copies each addressed only to one
> recipient?
>

That's not something an MTA should do. Basically, when you do that, you
are altering the message, which is obviously not an MTA's job.

You should however be able to do it by piping your messages through a perl
(or other language) script which will split the message and resubmit it to
exim. To do this, create a router which uses a transport like this one:
splitpipe:
        driver          = pipe
        command         = /script/splitpipe.cgi
Don't forget that your script must resubmit the splitted messages to exim.


> My system analyzes emails after the fact and treats them differently
> depending on who it's being sent to.
>
> Since the only thing exim does is accept the email and queue it, I'd
> like to split and copy before it hits the queue.
>