summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/autorespond.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 10:13:48 -0400
committerBarry Warsaw2016-03-25 10:13:48 -0400
commita681354cadf48394127796eb111c2904283c9288 (patch)
tree87377966491672f981d6567d78debd384004d11b /src/mailman/interfaces/autorespond.py
parentb9c06627e46ff1e9f09965228ab3b48f217109af (diff)
downloadmailman-a681354cadf48394127796eb111c2904283c9288.tar.gz
mailman-a681354cadf48394127796eb111c2904283c9288.tar.zst
mailman-a681354cadf48394127796eb111c2904283c9288.zip
Diffstat (limited to 'src/mailman/interfaces/autorespond.py')
-rw-r--r--src/mailman/interfaces/autorespond.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mailman/interfaces/autorespond.py b/src/mailman/interfaces/autorespond.py
index f2c231f02..7f6d44711 100644
--- a/src/mailman/interfaces/autorespond.py
+++ b/src/mailman/interfaces/autorespond.py
@@ -17,24 +17,17 @@
"""Autoresponder."""
-__all__ = [
- 'ALWAYS_REPLY',
- 'IAutoResponseRecord',
- 'IAutoResponseSet',
- 'Response',
- 'ResponseAction',
- ]
-
-
from datetime import timedelta
from enum import Enum
+from mailman import public
from zope.interface import Interface, Attribute
ALWAYS_REPLY = timedelta()
+__all__ = ['ALWAYS_REPLY']
-
+@public
class Response(Enum):
# Your message was held for approval.
hold = 1
@@ -46,7 +39,7 @@ class Response(Enum):
postings = 4
-
+@public
class ResponseAction(Enum):
# No automatic response.
none = 0
@@ -56,7 +49,7 @@ class ResponseAction(Enum):
respond_and_continue = 2
-
+@public
class IAutoResponseRecord(Interface):
"""An auto-response record.
@@ -75,7 +68,7 @@ class IAutoResponseRecord(Interface):
response_type = Attribute("""The type of response sent.""")
-
+@public
class IAutoResponseSet(Interface):
"""Matching and setting auto-responses.