Skip to content

Instantly share code, notes, and snippets.

@berserker1
Last active August 17, 2019 19:52
Show Gist options
  • Save berserker1/001e1883634e2a7e4b66b1059b7c34f9 to your computer and use it in GitHub Desktop.
Save berserker1/001e1883634e2a7e4b66b1059b7c34f9 to your computer and use it in GitHub Desktop.
candy
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