|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.GenericListserv
public abstract class GenericListserv
An abstract implementation of a listserv. The underlying implementation must define various settings, and can vary in their individual configuration. Supports restricting to members only, allowing attachments or not, sending replies back to the list, and an optional subject prefix.
Constructor Summary | |
---|---|
GenericListserv()
|
Method Summary | |
---|---|
MailAddress |
getListservAddress()
The email address that this listserv processes on. |
abstract java.util.Collection |
getMembers()
Returns a Collection of MailAddress objects of members to receive this email |
abstract java.lang.String |
getSubjectPrefix()
An optional subject prefix. |
abstract boolean |
isAttachmentsAllowed()
Returns whether this listserv allow attachments |
abstract boolean |
isMembersOnly()
Returns whether this list should restrict to senders only |
boolean |
isPrefixAutoBracketed()
Should the subject prefix be automatically surrounded by []. |
abstract boolean |
isReplyToList()
Returns whether listserv should add reply-to header |
void |
service(Mail mail)
Processes the message. |
Methods inherited from class org.apache.mailet.GenericMailet |
---|
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericListserv()
Method Detail |
---|
public abstract java.util.Collection getMembers() throws javax.mail.MessagingException
javax.mail.MessagingException
public abstract boolean isMembersOnly() throws javax.mail.MessagingException
javax.mail.MessagingException
public abstract boolean isAttachmentsAllowed() throws javax.mail.MessagingException
javax.mail.MessagingException
public abstract boolean isReplyToList() throws javax.mail.MessagingException
javax.mail.MessagingException
public MailAddress getListservAddress() throws javax.mail.MessagingException
javax.mail.MessagingException
public abstract java.lang.String getSubjectPrefix() throws javax.mail.MessagingException
javax.mail.MessagingException
public boolean isPrefixAutoBracketed() throws javax.mail.MessagingException
javax.mail.MessagingException
- never, for this implementationpublic final void service(Mail mail) throws javax.mail.MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- - the Mail object that contains the MimeMessage and
routing information
javax.mail.MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |