Peter,
with v2.2.0a8 you can code:
<processor name="redirect">
<mailet match="All" class="Redirect">
<recipients>[EMAIL PROTECTED]</recipients>
<to>[EMAIL PROTECTED],to</to>
<sender>apps1</sender>
<message xml:space="preserve">Redirected Message:
</message>
<inline>none</inline>
<attachment>message</attachment>
<passThrough>FALSE</passThrough>
<attachError>TRUE</attachError>
<prefix xml:space="preserve">[redirected mail] </prefix>
<static>TRUE</static>
</mailet>
</processor>
Vincenzo
> -----Original Message-----
> From: Peter Kelley [mailto:[EMAIL PROTECTED]
> Sent: gioved� 10 luglio 2003 6.16
> To: [EMAIL PROTECTED]
> Subject: Redirecting Multiple Addressees
>
>
> Hi,
>
> We've just startred using James on our test servers to catch all the
> mail before it goes somewhere unhelpful (like to a customer) and
> redirect it to a single mail address.
>
> One thing I have noticed though is that if the mail was originally
> addressed to multiple recipients seperated by commas the original e-mail
> message attached to the redirected mail only shows the last recipient in
> the to: field of the attatched message. Ideally we would like to see all
> the recipients so we can verify that the mail is being originally sent
> to all the correct recipients.
>
> Is this a bug or is there a better way to do this ?
>
> The relevant section of the main processor and the redirect processor we
> are using is shown below:
>
> <!-- Send remaining mails to the transport processor for either local or
> remote delivery -->
> <mailet match="[EMAIL PROTECTED]" class="ToProcessor">
> <processor> transport </processor>
> </mailet>
> <mailet match="All" class="ToProcessor">
> <processor> redirect </processor>
> </mailet>
>
>
> <processor name="redirect">
> <mailet match="All" class="Redirect">
> <recipients>[EMAIL PROTECTED]</recipients>
> <sender>apps1</sender>
> <message xml:space="preserve">Redirected Message:
> </message>
> <inline>none</inline>
> <attachment>message</attachment>
> <passThrough>FALSE</passThrough>
> <attachError>TRUE</attachError>
> <prefix xml:space="preserve">[redirected mail] </prefix>
> <static>TRUE</static>
> </mailet>
> </processor>
>
> --
> Peter Kelley <[EMAIL PROTECTED]>
> Moveit Pty Ltd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]