On Wed, 12 Sep 2001, Eric Weidner wrote:
> I tried exactly that in 1.2.1 and it didn't work. It would only accept 1
> entry in the RecipientIs field. Did this change in a later build?
Maybe.
But it should be working; the code is:
public class RecipientIs extends GenericRecipientMatcher {
private Set recipients;
public void init() throws javax.mail.MessagingException {
StringTokenizer st = new StringTokenizer(getCondition(), ", \t",
false); recipients = new HashSet();
while (st.hasMoreTokens()) {
recipients.add(new MailAddress(st.nextToken()));
}
}
It has StringTokenizer() which tokenizes the entries in the RecipientIs
matcher; make sure that the delimiters in the entries are commas, spaces,
or tabs (no newline please).
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]