diff options
| author | Harshit Bansal | 2016-04-12 02:58:25 +0530 |
|---|---|---|
| committer | Barry Warsaw | 2016-04-18 17:13:01 -0400 |
| commit | 7559ce6dfdf2d569c91fea173968e46d6857d730 (patch) | |
| tree | 6443ba6deedf2dc315e964e8c9f35bddbd3b2f4b /src/mailman/interfaces/subscriptions.py | |
| parent | d95f5d501623896ab239a94bda0954424a9d3127 (diff) | |
| download | mailman-7559ce6dfdf2d569c91fea173968e46d6857d730.tar.gz mailman-7559ce6dfdf2d569c91fea173968e46d6857d730.tar.zst mailman-7559ce6dfdf2d569c91fea173968e46d6857d730.zip | |
Diffstat (limited to 'src/mailman/interfaces/subscriptions.py')
| -rw-r--r-- | src/mailman/interfaces/subscriptions.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mailman/interfaces/subscriptions.py b/src/mailman/interfaces/subscriptions.py index 157bf1b62..f712d33f7 100644 --- a/src/mailman/interfaces/subscriptions.py +++ b/src/mailman/interfaces/subscriptions.py @@ -162,3 +162,18 @@ class ISubscriptionService(Interface): :raises NotAMemberError: if the given address is not a member of the mailing list. """ + + def unsubscribe_members(list_id, emails): + """Unsubscribe a batch of members from a mailing list. + + :param list_id: The list id to operate on. + :type list_id: string + :param emails: A list of email addresses of the users getting + unsubscribed. + :type emails: list of strings + :return: A two item tuple whose first item is a list of all the + successfully unsubscribed email addresses and second item is + a list of all unsuccessfull email addresses. + :rtype: Tuple + :raises NoSuchListError: if the named mailing list does not exist. + """ |
