summaryrefslogtreecommitdiff
path: root/Mailman/MemberAdaptor.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/MemberAdaptor.py')
-rw-r--r--Mailman/MemberAdaptor.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/Mailman/MemberAdaptor.py b/Mailman/MemberAdaptor.py
index af38b10c3..b2778f635 100644
--- a/Mailman/MemberAdaptor.py
+++ b/Mailman/MemberAdaptor.py
@@ -168,7 +168,8 @@ class MemberAdaptor:
primary reason for this to happen is that we've copied
their delivery status from a legacy version which didn't
keep track of disable reasons
- BYCHOICE - The user explicitly disable deliveries
+ BYUSER - The user explicitly disable deliveries
+ BYADMIN - The list administrator explicitly disabled deliveries
BYBOUNCE - The system disabled deliveries due to bouncing
If member is not a member of the list, raise NotAMemberError.
@@ -184,6 +185,16 @@ class MemberAdaptor:
"""
raise NotImplemented
+ def getDeliveryStatusMembers(self,
+ status=(UNKNOWN, BYUSER, BYADMIN, BYBOUNCE)):
+ """Return the list of members with a matching delivery status.
+
+ Optional `status' if given, must be a sequence containing one or more
+ of ENABLED, UNKNOWN, BYCHOICE, or BYBOUNCE. The members whose
+ delivery status is in this sequence are returned.
+ """
+ raise NotImplemented
+
def getBounceInfo(self, member):
"""Return the member's bounce information.
@@ -304,7 +315,8 @@ class MemberAdaptor:
primary reason for this to happen is that we've copied
their delivery status from a legacy version which didn't
keep track of disable reasons
- BYCHOICE - The user explicitly disable deliveries
+ BYUSER - The user explicitly disable deliveries
+ BYADMIN - The list administrator explicitly disabled deliveries
BYBOUNCE - The system disabled deliveries due to bouncing
This method also records the time (in seconds since epoch) at which