summaryrefslogtreecommitdiff
path: root/Mailman/MemberAdaptor.py
diff options
context:
space:
mode:
authorbwarsaw2001-12-27 06:36:54 +0000
committerbwarsaw2001-12-27 06:36:54 +0000
commit825134c6d898e53f6715f31440d8384f11241e20 (patch)
treef8363ea2da4f87193bb535a9aa82a7567970e049 /Mailman/MemberAdaptor.py
parent0e49ac18e667c23d4055d103b2bc8e27e6725a86 (diff)
downloadmailman-825134c6d898e53f6715f31440d8384f11241e20.tar.gz
mailman-825134c6d898e53f6715f31440d8384f11241e20.tar.zst
mailman-825134c6d898e53f6715f31440d8384f11241e20.zip
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