Last active
August 17, 2019 19:52
-
-
Save berserker1/001e1883634e2a7e4b66b1059b7c34f9 to your computer and use it in GitHub Desktop.
candy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mailing_lists_set = set() | |
list_manager = getUtility(IListManager) | |
for mlist in list_manager.mailing_lists: | |
mailing_lists_set.add(mlist) | |
for mlist in mailing_lists_set: | |
# obtain members whose deliverystatus is disabled by_bounce | |
status_type = DeliveryStatus.by_bounces | |
roster = mlist.members | |
addresses = list(roster.addresses) | |
for address in addresses: | |
pairs = address.bounce_info | |
for pair in pairs: | |
par[0] = pair[0] + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment