diff options
| author | Barry Warsaw | 2009-02-19 22:23:42 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-02-19 22:23:42 -0500 |
| commit | 8644b80168066c8fd11a7e2440ed8566453f0cd4 (patch) | |
| tree | f68f709fc52140ee135b5fb1862690edbe69d572 /src/mailman/interfaces/autorespond.py | |
| parent | fcec8479c1f07576094102128408f4c23b278bb5 (diff) | |
| download | mailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.tar.gz mailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.tar.zst mailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.zip | |
Diffstat (limited to 'src/mailman/interfaces/autorespond.py')
| -rw-r--r-- | src/mailman/interfaces/autorespond.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mailman/interfaces/autorespond.py b/src/mailman/interfaces/autorespond.py index f0b2f88bd..c2c2189b5 100644 --- a/src/mailman/interfaces/autorespond.py +++ b/src/mailman/interfaces/autorespond.py @@ -21,15 +21,20 @@ from __future__ import absolute_import, unicode_literals __metaclass__ = type __all__ = [ + 'ALWAYS_REPLY', 'IAutoResponseRecord', 'IAutoResponseSet', 'Response', + 'ResponseAction', ] +from datetime import timedelta from munepy import Enum from zope.interface import Interface, Attribute +ALWAYS_REPLY = timedelta() + class Response(Enum): @@ -44,6 +49,16 @@ class Response(Enum): +class ResponseAction(Enum): + # No automatic response. + none = 0 + # Respond, but discard the original message. + respond_and_discard = 1 + # Respond and continue processing the message. + respond_and_continue = 2 + + + class IAutoResponseRecord(Interface): """An auto-response record. |
