You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Peter Kelley <pe...@moveit.com.au> on 2003/07/10 06:15:44 UTC

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="RecipientIs=peterk@moveit.com.au" class="ToProcessor">
	<processor> transport </processor>
</mailet>
<mailet match="All" class="ToProcessor">
	<processor> redirect </processor>
</mailet>
 

<processor name="redirect">
	<mailet match="All" class="Redirect">
		<recipients>peterk@moveit.com.au</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 <pe...@moveit.com.au>
Moveit Pty Ltd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by Danny Angus <da...@apache.org>.
> 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.

This smells like a bug, please post it to bugzilla.

d.




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by Peter Kelley <pe...@moveit.com.au>.
Static set to false made no difference. I will look at 2.2.

On Thu, 2003-07-10 at 14:51, Noel J. Bergman wrote:
> There were issues in the 2.1.x code related to setting static to true.  You
> may be running into one now.  Change static to false.
> 
> Also, you might want to try the v2.2 test code.  That entire area has been
> completely re-written.
> 
> 	--- Noel

-- 
Peter Kelley <pe...@moveit.com.au>
Moveit Pty Ltd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by "Noel J. Bergman" <no...@devtech.com>.
There were issues in the 2.1.x code related to setting static to true.  You
may be running into one now.  Change static to false.

Also, you might want to try the v2.2 test code.  That entire area has been
completely re-written.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Thanks for that, I can now see all the addresses in the redirected mail.
> For some reason the addresses still do not appear in the original mail
> that gets attatched

Can you please illustrate that?  If true, that sounds like a bug somewhere.
Looking over the code, all that happens is that James attaches the message
intact.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by Peter Kelley <pe...@moveit.com.au>.
Thanks for that, I can now see all the addresses in the redirected mail.
For some reason the addresses still do not appear in the original mail
that gets attatched but at least I can see them now.

On Thu, 2003-07-10 at 16:54, Vincenzo Gianferrari Pini wrote:
> Peter,
> 
> with v2.2.0a8 you can code:
> 
> <processor name="redirect">
> 	<mailet match="All" class="Redirect">
> 		<recipients>peterk@moveit.com.au</recipients>
>             <to>peterk@moveit.com.au,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

-- 
Peter Kelley <pe...@moveit.com.au>
Moveit Pty Ltd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Redirecting Multiple Addressees

Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Peter,

with v2.2.0a8 you can code:

<processor name="redirect">
	<mailet match="All" class="Redirect">
		<recipients>peterk@moveit.com.au</recipients>
            <to>peterk@moveit.com.au,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:peterk@moveit.com.au]
> Sent: giovedì 10 luglio 2003 6.16
> To: server-user@james.apache.org
> 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="RecipientIs=peterk@moveit.com.au" class="ToProcessor">
> 	<processor> transport </processor>
> </mailet>
> <mailet match="All" class="ToProcessor">
> 	<processor> redirect </processor>
> </mailet>
>  
> 
> <processor name="redirect">
> 	<mailet match="All" class="Redirect">
> 		<recipients>peterk@moveit.com.au</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 <pe...@moveit.com.au>
> Moveit Pty Ltd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org