talx.model.filters
Class MultiRecipientFilter
java.lang.Object
talx.model.filters.ReceiverFilterAdapter
talx.model.filters.MultiRecipientFilter
- All Implemented Interfaces:
- java.util.EventListener, ReceiverFilter, ReceiverFilterListener, TALFeature
- public class MultiRecipientFilter
- extends ReceiverFilterAdapter
Filters messages that was sent to too many recipients.
The parameter string in the constructor expects to find a numberic
argument and possibly the argument "reply". If "reply" is present,
a message will be sent back to the originator whenever a message is
dropped. Otherwise, the filter will silently drop the message.
The numeric argument is the total number of recipients that are
allowed.
|
Method Summary |
protected boolean |
filterMessage(javax.mail.internet.MimeMessage msg)
Rejects messages from non-buddies and sends a message to the originator. |
protected boolean |
isGood(javax.mail.internet.MimeMessage msg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
model
protected TransportToolkit model
me
protected javax.mail.internet.InternetAddress me
errorText
protected java.lang.String errorText
limit
protected int limit
reply
protected boolean reply
MultiRecipientFilter
public MultiRecipientFilter(TransportToolkit model,
Settings settings,
java.lang.String params)
throws java.lang.NumberFormatException,
javax.mail.internet.AddressException
filterMessage
protected boolean filterMessage(javax.mail.internet.MimeMessage msg)
- Rejects messages from non-buddies and sends a message to the originator.
- Specified by:
filterMessage in class ReceiverFilterAdapter
- Parameters:
msg - The message to be filtered by this method.
- Returns:
- true if the message should be passed along, false if the message should
be dropped.
isGood
protected boolean isGood(javax.mail.internet.MimeMessage msg)
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.