diff options
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 fa4d19de6..f0b2f88bd 100644 --- a/src/mailman/interfaces/autorespond.py +++ b/src/mailman/interfaces/autorespond.py @@ -37,6 +37,10 @@ class Response(Enum): hold = 1 # Email commands, i.e. -request messages. command = 2 + # Messages to the list owner/administrator. + owner = 3 + # Messages to the list's posting address. + postings = 4 @@ -85,3 +89,14 @@ class IAutoResponseSet(Interface): :param response_type: The response type being sent. :type response_type: `Response` """ + + def last_response(address, response_type): + """Record the fact that another response is being sent to the address. + + :param address: The address who is the recipient of the auto-response. + :type address: `IAddress` + :param response_type: The response type being sent. + :type response_type: `Response` + :return: the last response recorded. + :rtype: `IAutoResponseRecord` + """ |
