talx x1.0.5

talx.model.filters
Class MultiRecipientFilter

java.lang.Object
  extended bytalx.model.filters.ReceiverFilterAdapter
      extended bytalx.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.


Field Summary
protected  java.lang.String errorText
           
protected  int limit
           
protected  javax.mail.internet.InternetAddress me
           
protected  TransportToolkit model
           
protected  boolean reply
           
 
Constructor Summary
MultiRecipientFilter(TransportToolkit model, Settings settings, java.lang.String params)
           
 
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 talx.model.filters.ReceiverFilterAdapter
addFilterListener, filterActivated, fireFilterActivated, fireNewMailEvent, newMailArrived, release, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

MultiRecipientFilter

public MultiRecipientFilter(TransportToolkit model,
                            Settings settings,
                            java.lang.String params)
                     throws java.lang.NumberFormatException,
                            javax.mail.internet.AddressException
Method Detail

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)

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.