On the same subject ("problems" with the MimeMessageWrapper):

        Why is it that getAllRecipients() only returns recipients of they were
defined in the DATA section of the protocol, ie:

DATA
Subject: ...
To: whoever
From: whoever

But returns null if they were only specified in the RCPT TO: and MAIL
FROM: section of the protocol?

On Wed, 2003-11-26 at 22:44, Serge Knystautas wrote:
> Gili wrote:
> >     Noel, I actually agree with Neill. I understand that mail.getRecipients() and 
> > modifying it works, but it is 
> > not intuitive and does not follow the Javabeans approach. Why not add 
> > setReceipients()? There isn't really an 
> > overhead there; you're just changing the reference of your collection from the old 
> > collection to the new one (and 
> > frankly, this also allows you to reuse the same collection). Sun's code does this 
> > across their entire API; we 
> > should do the same.
> 
> Why do you think you should call setRecipients()?  Do you expect to need 
> to call setMessage() as well after you add a header or make some 
> modification to it?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to