> The problem is that the SubPipeMailet needs to return more than one Mail
> object.
> If a Mail goes in with two local recipients each body will be processed
> differently and I will have two Mail to return to the mail pipe.
>
> Is there a turn around or we need to define a Mailet extension with some
> Mail[] service(Mail)?
>
> Fede

This is true of any servlet that decides it wants to get a message and do
more than alter it, i.e clone and alter.

We can currently alter, and delete, but not multiply.

At the moment if a servlet wants to simply get an email and tee it off to
someone else
as well as letting it go through the pipe it seems like it would have to
send off the message, with altered recipients,
and return the unaltered mail.

e.g.

                    <servlet match="All" class="ForkAndForward">
                        <forwardTo> mailspy@localhost </forwardTo>
                    </servlet>

With the current setup it would send off a new mail object, perhaps coming
into the system at the top of the pipe.

Another way would be to have a new Mail[] serviceMux(Mail) method. Normally
it just returns null, which signifies
that we do nothing.

I'd suspect any SubPipeMailet would be situated where we currently have the
LocalDelivery.

Say for example we have an incoming mail for 3 local users. We iterate on
them but find that only 1 has any personal pipe, thus
we return 2 mails, the first 1 going to the 2 simple users, and a second
that has returned from the user pipe for the custom user.

Err, something like that.

Dino.




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to