summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/mailinglist.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-10-09 22:18:14 -0400
committerBarry Warsaw2007-10-09 22:18:14 -0400
commit28f41bc768390f11cf817534cca67a1683f235a7 (patch)
treefadc3a93de6c87bfca0ad3276cdc81f257a7a221 /Mailman/interfaces/mailinglist.py
parente335c771c9e4bf0c108dd6ef9b8d210dce9c0221 (diff)
downloadmailman-28f41bc768390f11cf817534cca67a1683f235a7.tar.gz
mailman-28f41bc768390f11cf817534cca67a1683f235a7.tar.zst
mailman-28f41bc768390f11cf817534cca67a1683f235a7.zip
Reorganize the enums so that they live in the most appropriate interface. The
only constant left in Mailman.constants is now actually a constant.
Diffstat (limited to 'Mailman/interfaces/mailinglist.py')
-rw-r--r--Mailman/interfaces/mailinglist.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Mailman/interfaces/mailinglist.py b/Mailman/interfaces/mailinglist.py
index 0bb176b96..d52a6f7b5 100644
--- a/Mailman/interfaces/mailinglist.py
+++ b/Mailman/interfaces/mailinglist.py
@@ -17,10 +17,26 @@
"""Interface for a mailing list."""
+__all__ = [
+ 'IMailingList',
+ 'ReplyToMunging',
+ ]
+
+from munepy import Enum
from zope.interface import Interface, Attribute
+class ReplyToMunging(Enum):
+ # The Reply-To header is passed through untouched
+ no_munging = 0
+ # The mailing list's posting address is appended to the Reply-To header
+ point_to_list = 1
+ # An explicit Reply-To header is added
+ explicit_header = 2
+
+
+
class IMailingList(Interface):
"""A mailing list."""