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 Neill Robbins <ne...@phocis.com> on 2003/11/26 19:36:46 UTC

RE: Mail.setRecipients - So I might have bothered you enough, but...:-)

Hands up all those REALLY need to think about what they are asking
before posting to this list.

Uh...

Bollox.

-----Original Message-----
From: Serge Knystautas [mailto:sergek@lokitech.com] 
Sent: 26 November 2003 18:38
To: James Users List
Subject: Re: Mail.setRecipients - So I might have bothered you enough,
but...:-)
Importance: Low


Neill Robbins wrote:
> I think I am almost there... :-)
> 
> My problem at the moment is that I want to change the recipients on 
> the Mail in my Mailet.
> 
> Unfortunately Mail.setRecipients doesn't seem to exist, even though 
> the implementation exists in MailImpl.
> 
> Is there a good reason for this, or was it an oversight?

Mailets shouldn't be doing a whole-sale changing of recipients implied 
by using setRecipients().

Instead, get the Collection from getRecipients(), and add/remove/modify 
the MailAddress objects in that Collection.  That's all it takes.

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com p.
301.656.5501 e. sergek@lokitech.com


---------------------------------------------------------------------
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