diff options
| author | Barry Warsaw | 2016-04-29 00:28:05 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-04-29 00:28:05 -0400 |
| commit | 78d1f5918d2ec0b2351edb3ed005d5b8f7e4319c (patch) | |
| tree | 05ca840c89d0950d95b36566bed5723bd9409764 /src/mailman/model/subscriptions.py | |
| parent | 17103aae14f53655fd7685a0867724f6420b9282 (diff) | |
| download | mailman-78d1f5918d2ec0b2351edb3ed005d5b8f7e4319c.tar.gz mailman-78d1f5918d2ec0b2351edb3ed005d5b8f7e4319c.tar.zst mailman-78d1f5918d2ec0b2351edb3ed005d5b8f7e4319c.zip | |
Diffstat (limited to 'src/mailman/model/subscriptions.py')
| -rw-r--r-- | src/mailman/model/subscriptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/model/subscriptions.py b/src/mailman/model/subscriptions.py index e399e3285..d3fdc3a8a 100644 --- a/src/mailman/model/subscriptions.py +++ b/src/mailman/model/subscriptions.py @@ -161,7 +161,8 @@ class SubscriptionService: q_member = store.query(Member).filter( Member.list_id == list_id, Member.role == MemberRole.member) - for email in emails: + # De-duplicate. + for email in set(emails): unsubscribed = False # Join with a queries matching the email address and preferred # address of any subscribed user. |
