|
|||||||||||
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
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 Collection |
getMembers()
Returns a Collection of MailAddress objects of members to receive this email |
abstract 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, 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 Collection getMembers() throws MessagingException
MessagingException
public abstract boolean isMembersOnly() throws MessagingException
MessagingException
public abstract boolean isAttachmentsAllowed() throws MessagingException
MessagingException
public abstract boolean isReplyToList() throws MessagingException
MessagingException
public MailAddress getListservAddress() throws MessagingException
MessagingException
public abstract String getSubjectPrefix() throws MessagingException
MessagingException
public boolean isPrefixAutoBracketed() throws MessagingException
MessagingException
- never, for this implementationpublic final void service(Mail mail) throws MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- - the Mail object that contains the MimeMessage and
routing information
MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |