Skip to content
Snippets Groups Projects
Verified Commit f094ee66 authored by nd's avatar nd
Browse files

fixup! handle multiple mail addresses and cancle any subscription requests for...

fixup! handle multiple mail addresses and cancle any subscription requests for addresses we try to subscribe
parent d14190e9
Branches
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class Command(BaseCommand): ...@@ -83,7 +83,7 @@ class Command(BaseCommand):
# user might not be subscribed but should be subscribed -> subscribe # user might not be subscribed but should be subscribed -> subscribe
# we do not test if he is subscibed already because the mailman api is inconsistent and reports wrong state information for this... # we do not test if he is subscibed already because the mailman api is inconsistent and reports wrong state information for this...
# instead we always try to subscribe and catch the error if we are subscribed already # instead we always try to subscribe and catch the error if we are subscribed already
for address in mm_user.addresses[0]: for address in mm_user.addresses:
user_mail = address.email user_mail = address.email
if membership_type == 'member': if membership_type == 'member':
# discard a subscription request before trying to subscribe else it will fail # discard a subscription request before trying to subscribe else it will fail
......
from setuptools import setup, find_packages from setuptools import setup, find_packages
setup(name='postorius_ldap_membership_management', setup(name='postorius_ldap_membership_management',
version='1.1', version='1.2',
description='Sync subscriptions from ldap', description='Sync subscriptions from ldap',
url='https://git.cccv.de:infra/uffd/postorius-ldap-membership-management', url='https://git.cccv.de:infra/uffd/postorius-ldap-membership-management',
author='Andreas Valder', author='Andreas Valder',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment