org.apache.james.transport.mailets
Class AvalonListserv
java.lang.Object
|
+--org.apache.mailet.GenericMailet
|
+--org.apache.james.transport.mailets.GenericListserv
|
+--org.apache.james.transport.mailets.AvalonListserv
- All Implemented Interfaces:
- Mailet, MailetConfig
- public class AvalonListserv
- extends GenericListserv
MailingListServer capability.
Requires a configuration element in the .conf.xml file of the form:
<repositoryName>name of user repository configured in UsersStore block </repositoryName>
<membersonly>
<attachmentsallowed>
<replytolist>
<subjectprefix>
- Version:
- This is $Revision: 1.2 $
Committed on $Date: 2001/06/24 13:18:36 $ by: $Author: charlesb $
- Author:
- Serge Knystautas
Method Summary |
java.lang.String |
getMailetInfo()
Returns information about the mailet, such as author, version, and
copyright. |
java.util.Collection |
getMembers()
Returns a Collection of MailAddress objects of members to receive this email |
java.lang.String |
getSubjectPrefix()
An optional subject prefix which will be surrounded by []. |
void |
init()
A convenience method which can be overridden so that there's no
need to call super.init(config). |
boolean |
isAttachmentsAllowed()
Returns whether this listserv allow attachments |
boolean |
isMembersOnly()
Returns whether this list should restrict to senders only |
boolean |
isReplyToList()
Returns whether listserv should add reply-to header |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
membersOnly
protected boolean membersOnly
attachmentsAllowed
protected boolean attachmentsAllowed
replyToList
protected boolean replyToList
subjectPrefix
protected java.lang.String subjectPrefix
AvalonListserv
public AvalonListserv()
init
public void init()
- Description copied from class:
GenericMailet
- A convenience method which can be overridden so that there's no
need to call super.init(config).
Instead of overriding init(MailetConfig), simply override this
method and it will be called by GenericMailet.init(MailetConfig config).
The MailetConfig object can still be retrieved via getMailetConfig().
- Overrides:
init
in class GenericMailet
- Following copied from class:
org.apache.mailet.GenericMailet
- Throws:
javax.mail.MessagingException
- if an exception occurs that interrupts the mailet's normal operation
getMembers
public java.util.Collection getMembers()
throws javax.mail.internet.ParseException
- Description copied from class:
GenericListserv
- Returns a Collection of MailAddress objects of members to receive this email
- Overrides:
getMembers
in class GenericListserv
isMembersOnly
public boolean isMembersOnly()
- Description copied from class:
GenericListserv
- Returns whether this list should restrict to senders only
- Overrides:
isMembersOnly
in class GenericListserv
isAttachmentsAllowed
public boolean isAttachmentsAllowed()
- Description copied from class:
GenericListserv
- Returns whether this listserv allow attachments
- Overrides:
isAttachmentsAllowed
in class GenericListserv
isReplyToList
public boolean isReplyToList()
- Description copied from class:
GenericListserv
- Returns whether listserv should add reply-to header
- Overrides:
isReplyToList
in class GenericListserv
getSubjectPrefix
public java.lang.String getSubjectPrefix()
- Description copied from class:
GenericListserv
- An optional subject prefix which will be surrounded by [].
- Overrides:
getSubjectPrefix
in class GenericListserv
getMailetInfo
public java.lang.String getMailetInfo()
- Description copied from class:
GenericMailet
- Returns information about the mailet, such as author, version, and
copyright. By default, this method returns an empty string. Override
this method to have it return a meaningful value.
- Overrides:
getMailetInfo
in class GenericMailet
- Following copied from class:
org.apache.mailet.GenericMailet
- Returns:
- String information about this mailet, by default an empty string
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."